How to deal with Oracle pl/sql functions that return a CLOB. #1158
Unanswered
PaulvdLinden
asked this question in
Q&A
Replies: 1 comment
-
There have been many changes to blobs support recently, see #992, so I'd strongly recommend trying to use the latest version from master. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having some difficulties processing the CLOB result of a package function when it's larger than 32767 bytes.
My C++ program links to Soci 4.0.3. This is the code to get the data:
In this example
result
contains the requested data until it's more than 32767 bytes. In that case I'll get an Oracle error:ORA-06502: PL/SQL: numeric or value error
.When a change the type of
result
intosoci::long_string
it never contains any data, there are no Oracle errors.Only with a select statement I can retrieve the data regardless of the size.
The difference is that I now use
soci::into
instead ofsoci::use
. I was wondering if the functionality from my second example is simply missing or is it intentional?Beta Was this translation helpful? Give feedback.
All reactions