How do I bind a clob variable to the return value of a plsql function #360
-
I have this code snippet:
This results in the following error: When I change the type from I don't understand why I'm getting the null lob handle error, am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi, you need to provide a valid clob object by using the clob constructor that takes a connection object. replace the default constructor initialize the clob as a null clob object. Regards, Vincent |
Beta Was this translation helpful? Give feedback.
-
Good to hear :) So, what are the pros/cons, from your standpoint of each library ? Regards, Vincent |
Beta Was this translation helpful? Give feedback.
Hi,
you need to provide a valid clob object by using the clob constructor that takes a connection object.
replace
ocilib::Clob result;
with
ocilib::Clob result(con);
the default constructor initialize the clob as a null clob object.
the constructor with the connection initialize the clob with an empty valid CLOB handle (with connection details) that can be assigned fetched lob handle.
Regards,
Vincent