Page 1 of 1

Firebird and PostgreSQL driver cross dependency

Posted: 28.03.2009, 21:19
by personalsoft_fabiano
Hi,

The Firebird zdbc implementation uses a class from PostgreSQL implementation:

TZInterbaseNumberState = class (TZPostgreSQLNumberState)

It cause an error if i set Zeos.inc to compile just the Firebird driver.

I think there should be no cross dependency among zdbc drivers.

The solution here should be one of:
1) Copy the TZPostgreSQLNumberState implementation to the firebird unit, as TZInterbaseNumberState
2) Rename TZPostgreSQLNumberState to something generic (ex: TZAbstractNumberState) and move it to some zeos generic unit

What do you think? Is it the right list to post this?

Regards,

Fabiano

Posted: 29.03.2009, 14:29
by seawolf
Take a look here

It looks like those patches have been not applied

Posted: 02.04.2009, 22:36
by mdaems
Hi Fabiano,

The issue has been tackled the way I proposed in the post seawolf refers to. It has been merged with 6.6-patches, but this was done after the 6.6.4 release. When I find some time to merge the other wating bug fixes and package the 6.6.5 release this change will be included. It's not perfect, but it fixes the compilation issue.

When you want to start studying and coding a good solution for the 7.X release, please do so and post he result here or even better on the user patches forum.

Mark