Page 1 of 1

Client and Server Version of Firebird

Posted: 05.09.2010, 10:39
by haentschman
Hi all...

I am trying to find out the actually Version of the Firebird Server and the used Client Version.

I am using:
- FB Server 2.1 WI-V6.3.3.18185
- Client Libary 2.1.3.18185
- Zeos 6.6.2 - RC
but:
- ZConnection.DbcDriver.GetMajorVersion get 1
- ZConnection.DbcDriver.GetMinorVersion get 0
- ZConnection.DbcDriver.GetSubVersion get 0

What I am doing wrong ?

Thanks for Help...

Posted: 08.09.2010, 20:57
by mdaems
Hi,

I'm afraid the information you're looking for is not available (yet).
For mysql and postgres this is already available in ZConnection properties

Code: Select all

    property ClientVersion: Integer read GetClientVersion;
    property ServerVersion: Integer read GetServerVersion;
    property ClientVersionStr: String read GetClientVersionStr;
    property ServerVersionStr: String read GetServerVersionStr;
Please have a look at the implementation for mysql and postgres as sample code for this function.
The GetVersion function in ZDbcInterbase6Utils.pas may come in handy. Also in ZDbcInterbase6Metadata.pas there's some version retrieval function available (TZInterbase6DatabaseMetadata.GetServerVersion)
My first impression is the already available functions only retrieve server versions. Doing a search though the Interbase documentation I can't find anAPI function to return the client lib version number.

When you decide to implement the ClientVersion and ServerVersion properties, please post your code here, so I can merge them to the official codebase.

Mark