Re: [Firebird-devel] Knowing whether fbclient supports isc_dpb_utf8_filename
>isc_get_client_version() returns string with FB_BUILD_SUFFIX as last part. > It have value "Firebird 2.1" for FB 2.1, "Firebird 4.0" for FB 4 and so on. Thanks. That and small regex will do just fine. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Knowing whether fbclient supports isc_dpb_utf8_filename
01.03.2022 14:15, Jiří Činčura wrote: Sorry for disappointing you, but they not gonna be any helpful, as they always return version "6.3" for InterBase compatibility ;-) Yeah. And looks like no function returns FB_MAJOR_VER. Hope somebody has a nice trick in sleeves. isc_get_client_version() returns string with FB_BUILD_SUFFIX as last part. It have value "Firebird 2.1" for FB 2.1, "Firebird 4.0" for FB 4 and so on. Hope it helps, Vlad Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Knowing whether fbclient supports isc_dpb_utf8_filename
> Sorry for disappointing you, but they not gonna be any helpful, as they > always return version "6.3" for InterBase compatibility ;-) Yeah. And looks like no function returns FB_MAJOR_VER. Hope somebody has a nice trick in sleeves. -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Knowing whether fbclient supports isc_dpb_utf8_filename
01.03.2022 14:56, Jiří Činčura wrote: void ISC_EXPORT isc_get_client_version ( ISC_SCHAR *); int ISC_EXPORT isc_get_client_major_version (); int ISC_EXPORT isc_get_client_minor_version (); Great! How could I miss it??? Sorry for disappointing you, but they not gonna be any helpful, as they always return version "6.3" for InterBase compatibility ;-) Dmitry Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Knowing whether fbclient supports isc_dpb_utf8_filename
> int ISC_EXPORT isc_get_client_major_version (); > int ISC_EXPORT isc_get_client_minor_version (); My excitement was short lived. fbclient.dll version 4.0.1.2692 returns 6 and 3 respectively. :( -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Knowing whether fbclient supports isc_dpb_utf8_filename
> void ISC_EXPORT isc_get_client_version ( ISC_SCHAR *); > int ISC_EXPORT isc_get_client_major_version (); > int ISC_EXPORT isc_get_client_minor_version (); Great! How could I miss it??? -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] Knowing whether fbclient supports isc_dpb_utf8_filename
On 3/1/22 13:45, Jiří Činčura wrote: Hi *, Can somebody think of a way to detect whether fbclient supports isc_dpb_utf8_filename? For example when calling isc_create_database in .NET provider with "Embedded" I need to know whether I can use UTF8 in database path. On Windows I can check version of the DLL and when version >= 2.5 I can assume I'm safe (What happens when I connect using 2.5 to older database?). But on Linux, etc. the binary has no such version info in header. Bummer. from ibase.h: // /* Client information functions */ // void ISC_EXPORT isc_get_client_version ( ISC_SCHAR *); int ISC_EXPORT isc_get_client_major_version (); int ISC_EXPORT isc_get_client_minor_version (); Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
[Firebird-devel] Knowing whether fbclient supports isc_dpb_utf8_filename
Hi *, Can somebody think of a way to detect whether fbclient supports isc_dpb_utf8_filename? For example when calling isc_create_database in .NET provider with "Embedded" I need to know whether I can use UTF8 in database path. On Windows I can check version of the DLL and when version >= 2.5 I can assume I'm safe (What happens when I connect using 2.5 to older database?). But on Linux, etc. the binary has no such version info in header. Bummer. I can also tell everybody that < 2.5 is not supported and happily use isc_dpb_utf8_filename (OK, maybe also I need to care about isc_spb_utf8_filename.), but that's lame. For isc_database_info I don't have handle. I'm kind of missing op_connect phase to get the selected protocol version. :) -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel