Subject Re: [firebird-support] Re: How to identify database created by Firebird 1.5 or Interbase 6.5?
Author Ann W. Harrison
Try the database info call. That's what it's there for.

isc_database_info( status_vector,
db_handle, sizeof(info), info,
buf_len, (buf)))

Try this information request:
static const char info[] =
{ isc_info_isc_version, isc_info_firebird_version, isc_info_end };

InterBase will respond to isc_info_isc_version but return unknown to the

Firebird will respond to both. The isc_info_isc_verison will be the most
recent compatible InterBase version.

There's an example of its use in utl.cpp in jrd. The routine is isc_version.