Page 1 of 1

Howto disable support in TZConnection/TZDataset

Posted: 13.05.2009, 21:09
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

Posted: 13.05.2009, 21:22
by seawolf
Directive {$IFNDEF ZEOS_DISABLE_POSTGRESQL}
is declared only in Zeos.inc

Posted: 13.05.2009, 21:25
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

Posted: 13.05.2009, 23:05
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.

Posted: 13.05.2009, 23:16
by andresayang
Only to show how to disable databases supports in modified Zeos.inc.

Posted: 13.05.2009, 23:56
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

Posted: 14.05.2009, 00:54
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.