Norbert Saint Georges wrote 20.12.2021 12:40:
a varbinary has a subtype of 1 and not 0 (binary) normal?
Yes. According to README.data_types.txt subtype 1 is what distinguishes VARBINARY from VARCHAR. Though at API level subtype is returned as 0 because of limitations of engine internals.
-- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel