Hello, I have created two functions on two different databases connected them using dblink. FOLLOWING IS THE LOCAL FUNCTION:
RAISE WARNING 'Inside local function: Connected to dblink'; END IF; PERFORM dblink_disconnect('codblink'); FOLLOWING IS THE REMOTE FUNCTION: CREATE OR REPLACE FUNCTION codb.dblink_function(a varchar, b varchar, c text, d varchar) IF(b is not null) ElSE END All the values in the temp1 table column 'b' are NULL the condition on the local function is being satisfied and a NULL string is passed to the remote function where this parameter 'b' is checked for being not null, here it passes even
though we promptly sent a NULL. To check whether this problem persists because of dblink or not, I created both this function on single database and made the function calls without using dblink, now the condition worked as expected. Can anyone tell me why a NULL is not passed and checked properly on remote side when using dblink. Note: This code is a dummy, changes various names for security purpose. Please help soon. Thanks in advance. Thanks and Regards, Piyush Jaisingkar , App. Software Dev. Sr. App. Conslt. | NTT DATA GDS, Pune. Contact : m: +91.9405320360 | Voip +88348.149 | piyush.jaisingkar@xxxxxxxxxxx NTT DATA Global Delivery Services Private Limited Consulting | Digital
| Managed Services | Industry Solutions Learn more: ______________________________________________________________________ Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding. |