Subject Re: To Dmitry Y, Re: [firebird-support] Bug with character sets
Author Dmitry Yemanov
Martijn Tonies wrote:
>
> Currently, there appears to be no
> way to know what to pass from the API to the caller application, -unless-
> you query a system metadata tables and do some calculations. This sounds
> like an API defect.

XSQLDA alone was never able to satisfy the API level developers (maybe
except the very early days). In order to get more detailed information,
there are special tags for isc_dsql_sql_info(). For example, it can
deliver you all the information necessary to manually fill the XSQLDA
(this is basically what fbclient does behind the scene). So, unless
we're speaking about a whole new API, I don't think that such changes to
XSQLDA are a good idea. Just ask us about adding a new statement
information tag and use the proper API call instead. Yes, this is an
extra round-trip to the server. But, believe me or not, this isn't an
API defect but rather a feature ;-)


Dmitry