connecting with postgresql 12.1

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Post Reply
santia
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 05.01.2020, 18:17

connecting with postgresql 12.1

Post by santia »

ZeosDBO works with Postgresql with a version higher than 9 ???
I've tried it with version 12.1 and it doesn't work with Lazarus v2.06, the error message it gives me is:
Client-Library libpq.dll found but could not be loaded.
Check compile-target and library compatibility!


thank
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1999
Joined: 17.01.2011, 14:17

Re: connecting with postgresql 12.1

Post by marsupilami »

Hello and welcome to the forums :)

Zeos will connect to all versions of PostgreSQL. PostgreSQL 12 only gets delivered as a 64 Bits application. You have two options:
- change your Lazarus project to be a 64 bit application.
- get a 32 bit client library. A 32 bit client library gets distributed with pgadmin 4.

Best regards,

Jan
santia
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 05.01.2020, 18:17

Re: connecting with postgresql 12.1

Post by santia »

After continuing to test, I got it to work by copying the following dll to client, but from version 12.1

libcrypto-1_1-x64.dll
libiconv-2.dll
libintl-8.dll
libpq.dll
libssl-1_1-x64.dll

Of course I use the 64 bit version. from Lazaruz, now everything works ok
Post Reply