On Sun, 16 Jun 2013 11:34:43 -0300, Adriano dos Santos Fernandes <[email protected]> wrote: > On 16-06-2013 08:44, Mark Rotteveel wrote: >> I need some help with handling isc_info_truncated when retrieving >> statement prepare info (the request includes both isc_info_sql_select >> and isc_info_sql_bind) >> >> Specifically I need to know where to put the isc_info_sql_sqlda_start >> items when both isc_info_sql_select and isc_info_sql_bind are present. >> >> I looked at the .NET provider implementation, and it inserts the first >> one at the start of the information request block, and the second one >> just after the first isc_info_sql_describe_end. Is that the right way to >> do it, or are there more rules associated with this? >> > > Look at this class: > https://github.com/asfernandes/firebird/blob/master/src/common/StatementMetadata.cpp > > It's a refactor/recreation of the previous code in the yvalve, surely > easier to understand.
I found it (and funnily enough, it does look a lot like what I wrote based on the existing Java and .NET implementations), but it did not entirely answer how to handle isc_info_sql_sqlda_start in the way I do the request. But with some trial and error and looking at the serverside implementation I got it working. Mark ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
