24.03.2016 10:56, Dmitry Yemanov wrote:
> 24.03.2016 11:33, Vlad Khorsun wrote:
>
>>> May I suggest to add isc_info_* code to query the backup GUID via
>>> isc_database_info()? Parsing gstat output for it is very awful.
>>
>> I have same idea. I suppose it is better to return GUID in text
>> representation, not binary, agree ?
>
> I'm not that sure. API is for programmers and it's intended to work with
> binary data. Whoever able to call isc_database_info() may easily call
> (or implement) a function to format it into text.

   This is my worries - one could interpret GUID bytes order not in the same
way as Firebird does. Look at guid.h - we still have two formats for the
GUID's and nbackup currently used old one.

   If end user will use text GUID's converted to\from binary format by the
Firebird itself (gstat\nbackup) - it is consistent and thus safe.

Regards,
Vlad

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to