TZConnection and default library path for PostgreSQL

The BETA tester's 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
ertank
Junior Boarder
Junior Boarder
Posts: 30
Joined: 02.06.2017, 12:00

TZConnection and default library path for PostgreSQL

Postby ertank » 08.06.2017, 22:29

Hello,

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;

This will be inserted as a new line number 67. Also modification of below line is necessary line number is 1768 (after inserting new line 67):

Code: Select all

    {$ELSE}
      FLoader.AddLocation(LINUX_DLL9_LOCATION);
    {$ENDIF}

Making these modifications and recompiling the library it can automatically load PostgreSQL 9 library if selected 'postgresql-9' as the protocol in object inspector. No more need to provide a strict path.

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
You do not have the required permissions to view the files attached to this post.

marsupilami
Gold Boarder
Gold Boarder
Posts: 591
Joined: 17.01.2011, 14:17

Re: TZConnection and default library path for PostgreSQL

Postby marsupilami » 09.06.2017, 11:24

Hello Ertan,

I added your changes. See Rev. 3990 on Zeos 7.2.
Thank you for helping.

With best regards,

Jan


Return to “ZeosLib 7.2 Betatest Forum”

Who is online

Users browsing this forum: No registered users and 1 guest