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...
Client and Server Version of Firebird
Moderators: gto, EgonHugeist
-
- Fresh Boarder
- Posts: 20
- Joined: 06.11.2007, 22:42
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
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
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
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;
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