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.1, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmariadb.dll 3.3.8
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.13
- MSSQL 2012, 2019; sybdb.dll FreeTDS_2435
- SQLite 3.45.2
Using:
- MySQL server 8.0.18; libmariadb.dll 3.3.8
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.13
- MSSQL 2012, 2019; sybdb.dll FreeTDS_2435
- SQLite 3.45.2
Re: GetClientVersion for PostgreSQL
Lazarus(Pascal) allows it, but for portability it's worth changing to result := result+ ...
Michal
Michal
-
- Platinum Boarder
- Posts: 1935
- Joined: 17.01.2011, 14:17
Re: GetClientVersion for PostgreSQL
I applied the patch. Thank you for the contribution.