Draft patch "GetClientVersion for PostgreSQL".
Function gives version of client library.
Tested on git branch "8.0-patches".
GetClientVersion for PostgreSQL
Moderators: gto, cipto_kh, EgonHugeist, mdaems
GetClientVersion for PostgreSQL
You do not have the required permissions to view the files attached to this post.
Re: GetClientVersion for PostgreSQL
Good one, thanks!
Just keep in mind that Delphi does not support this format:
Just keep in mind that Delphi does not support this format:
it should look likeResult += (pqver mod 100) * 1000;
You are using C builder, correct?Result := Result + (pqver mod 100) * 1000;
Delphi 12.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Re: GetClientVersion for PostgreSQL
Lazarus(Pascal) allows it, but for portability it's worth changing to result := result+ ...
Michal
Michal
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: GetClientVersion for PostgreSQL
I applied the patch. Thank you for the contribution.