Skip to content

How do I bind a clob variable to the return value of a plsql function #360

Answered by vrogier
PaulvdLinden asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@PaulvdLinden
Comment options

Answer selected by PaulvdLinden
Comment options

You must be logged in to vote
2 replies
@PaulvdLinden
Comment options

@vrogier
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants