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
Uh oh!
There was an error while loading. Please reload this page.
-
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
resultcontains 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
resultintosoci::long_stringit 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::intoinstead 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