Subject Re: [Firebird-Architect] The Wolf on Firebird 3
Author Jim Starkey
Ivan Prenosil wrote:

>>>
>>>
>>ResultSet::getString returns a null terminated string. You use it,
>>assign it to a string class, and copy it before the next "next()". You
>>don't worry about the length. It's a string.
>>
>>
>
>Does it mean binary data (containing zeros) will not be supported any more ?
>
>
>
>
Not at all. Binary data is set with PreparedStatement::setBytes(int
offset, int length, const void *buffer) and fetched with
ResultSet::getBlob, Blob::length(), and Blob::getBytes(long offset, long
length, void *buffer). ResultSet::getBlob works with any database data
type.

I should probably make the offsets and lengths int64's on general
principles.


--

Jim Starkey
Netfrastructure, Inc.
978 526-1376