I was deeply annoyed about the problem that SQLdb is able to load PostgreSQL library without any need to provide "LibraryPath"
I have below modification in SVN 3988 in file ZPlainPostgreSQLDriver.pas
Code: Select all
LINUX_DLL9_LOCATION = LINUX_DLL82_LOCATION;
Code: Select all
{$ELSE}
FLoader.AddLocation(LINUX_DLL9_LOCATION);
{$ENDIF}
Tested under Raspberry Pi 3, PostgreSQL 9.4.12 server and client installed from apt-get packages. Working OK.
Tested under Linux debian 3.16.0-4-0 amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux, PostgreSQL 9.4.12 client installed from apt-get packages. Working OK.
Unfortunately, I do not know how to prepare a diff file for merging into SVN. So, attached is the modified file.
Thanks.
Ertan