I am writing database functions with plpgsql. (I am using Postgresql 9.4 with centos 6) Here an example on what I would like to improve: CREATE OR REPLACE FUNCTION usp_locking_trial(p_trial_code
VARCHAR(50), p_trial_key VARCHAR(500)) END; I have many functions where I check if the arguments are null or empty. This code is repetitive and could be the almost the same between functions. For
a given example: a function who takes all input arguments and
it checks one by one if it's null and raise an exception with
the name of the argument. Would
it be a good idea ? Thanks. Le 2016-10-17 à 3:09 PM, Raymond
O'Donnell a écrit :
On 17/10/16 16:40, said assemlal wrote: |