Howto disable support in TZConnection/TZDataset

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
andresayang
Fresh Boarder
Fresh Boarder
Posts: 15
Joined: 13.01.2009, 09:20

Howto disable support in TZConnection/TZDataset

Post by andresayang »

Hi,

Well in the Zeos.inc file there is:

{$IFNDEF ZEOS_DISABLE_POSTGRESQL}
{$DEFINE ENABLE_POSTGRESQL}
{$ENDIF}

Is there other file where we define ZEOS_DISABLE_POSTGRESQL or we should do it in the Zeos.inc file ?


Thanks
seawolf
Zeos Dev Team *
Zeos Dev Team *
Posts: 385
Joined: 04.06.2008, 19:50
Contact:

Post by seawolf »

Directive {$IFNDEF ZEOS_DISABLE_POSTGRESQL}
is declared only in Zeos.inc
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

andresayang,
If you include the zeoslib sources in your search path you can define this directive in your project's build options dialog to disable postgres support.
In this case you better also define a build directory to avoid dcu's in the source dirs.

Mark
Image
andresayang
Fresh Boarder
Fresh Boarder
Posts: 15
Joined: 13.01.2009, 09:20

Post by andresayang »

Hi all,

Well I have found the answer myself by testing.
I have to modify 3 files, included inside the 7z archive.

For the modification in the Zeos.inc file, I think it is more easy now to enable/disable any database support.

Hope this will help a little.
You do not have the required permissions to view the files attached to this post.
Last edited by andresayang on 13.05.2009, 23:21, edited 1 time in total.
andresayang
Fresh Boarder
Fresh Boarder
Posts: 15
Joined: 13.01.2009, 09:20

Post by andresayang »

Only to show how to disable databases supports in modified Zeos.inc.
You do not have the required permissions to view the files attached to this post.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

andresayang,
Did you try using my proposal : setting the defines at project level? That way you can en/disable the supported databases per project while installing all supported databases in your IDE.

Concerning your changes to the D2009 packages... at the moment I don't get it compiled using these files because of pending changes in my working copy. I hope to get that fixed soon.

Mark
Image
andresayang
Fresh Boarder
Fresh Boarder
Posts: 15
Joined: 13.01.2009, 09:20

Post by andresayang »

Mark,

Well your proposal is really a better solution.
I have already done those change when you reply and i have post the working files after. (simply because i think it is how it should be: disabling a database support with the Zeos.inc file was failing the compilation).

However the size drop is quite insignificant so i think i will leave the Zeos.inc unchanged.

Thanks.
Locked