Subject | Determining database ODS (pre 11.1) |
---|---|
Author | Adam |
Post date | 2009-01-22T22:50:37Z |
Hello Group,
Is there any way of determining the ODS of a database for pre 11.1 ODS
(from a client connection, not gstat)? Specifically, I need to know
whether a given database was built with Firebird 1.5 or 2.1.
In Firebird 2.1/ ODS 11.1, I can run:
select mon$ods_major||'.'||mon$ods_Minor as ODS
from mon$database;
but the monitoring tables obviously don't exist in older versions. If
not, I can work around it by catching the exception.
Thanks
Adam
Is there any way of determining the ODS of a database for pre 11.1 ODS
(from a client connection, not gstat)? Specifically, I need to know
whether a given database was built with Firebird 1.5 or 2.1.
In Firebird 2.1/ ODS 11.1, I can run:
select mon$ods_major||'.'||mon$ods_Minor as ODS
from mon$database;
but the monitoring tables obviously don't exist in older versions. If
not, I can work around it by catching the exception.
Thanks
Adam