8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 02:03:03 +01:00

Allow the monitoring feature for Dialect 1 databases.

This commit is contained in:
dimitr 2007-02-12 10:01:45 +00:00
parent bc547bb403
commit 3cf3bbcb27

View File

@ -1424,7 +1424,14 @@ static void store_global_field(thread_db* tdbb, const gfld* gfield, jrd_req** ha
else if (gfield->gfld_dtype == dtype_long)
X.RDB$FIELD_TYPE = (int) blr_long;
else
X.RDB$FIELD_TYPE = (int) blr_int64;
{
// Workaround to allow fld_counter domain
// in dialect 1 databases
if (dbb->dbb_flags & DBB_DB_SQL_dialect_3)
X.RDB$FIELD_TYPE = (int) blr_int64;
else
X.RDB$FIELD_TYPE = (int) blr_double;
}
if ((gfield->gfld_sub_type == dsc_num_type_numeric) ||
(gfield->gfld_sub_type == dsc_num_type_decimal))
{