Quantcast
Channel: Off-Topic Posts (Do Not Post Here) forum
Viewing all articles
Browse latest Browse all 14169

OValue restult is cut off, if database records contains "00" string

$
0
0

I have a problem with a value that is selected from a Oracle database table in a C++ program.

The Oracle table contains a column of type RAW(255). The value is of this table is read in the C++ code by using an object of the classes "ODynaset" and "OValue" and using the method "GetFieldValue" of class "ODynaset".

Example:

   ODynaset dMyDynaset;

   OValue oDBRecordValue;

   dMyDynaset.GetFieldValue( "Col1", &oDBRecordValue);

There is problem, if the database record contains a "00" string in the middle of the record value (i.e. "5AA4C11A00C806").  

In such a case the OValue object's content is cut off before the first appearance of the "00". The rest of the database string is not available in the C++ program.

How can I fix this issue, or is it a bug?

 

Viewing all articles
Browse latest Browse all 14169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>