On 07/29/2016 09:02 PM, Dimitry Sibiryakov wrote:
> 29.07.2016 19:33, Alex Peshkoff wrote:
>> It should return default generated automatically metadata - the fact
>> that statement was executed with some non-default metadata does not
>> affect default parameters format.
>     Ok.
>
>     The same question for IResutSet: must getMetadata() return default 
> metadata or used for
> openCursor() call, or, may be, set with setDelayedOutputFormat()?
>     Totally, we have three potentially different formats for the same 
> IResultSet. Which one
> must be used for message returned by fetchNext()?
>
>

If delayed output format was used (i.e. we are emulating isc api) that 
format should be used. I have no idea what to do if it was used together 
with format set in openCursor() - they should not be used in the same 
time, the issue with isc api is that we do not know what format to use 
when open the cursor. Probably raise error, drop database and format 
hard disk;)

IResutSet:getMetadata() should always return actual format that will be 
used when fetching records. I.e. if metadata was set in openCursor() 
same metadata should be returned.


------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to