FB2 & ZL 6.6.2

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
ilboss
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: 13.09.2006, 08:51

FB2 & ZL 6.6.2

Post by ilboss »

Hi,
I'm testing ZL 6.6.2 and Firebird 2.0 with Delphi 2007.
I try to explain my problem (sorry for my english)

Tab1 had a trigger. this trigger start a Stored procedure that populates Tab2 and Tab3

I insert a record in Tab1, and the SP and I populated with data Tab2 and Tab3.

Everything works perfectly in FB but ....
When I do it from D2007 I not seem to see the data Tab2 and Tab3 even
with a refresh.
To see the data I have to close and reopen the connection to the db.
This, of course, takes away a bit of time.

Some suggestions?
Thanks
Boss
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Hi,

As far as I know this has something to do with transaction handling in FB (Isolation level, hard/soft commits, ...).
It's a bit strange for me (using oracle and mysql). Are all queries using the same connection? Seems to me they should all have access to the same (updated) data, but apparently not.

Mark
ilboss
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: 13.09.2006, 08:51

Post by ilboss »

> Are all queries using the same connection?
Yes, I'm using the same connection.
Do you thing it's better using different connection in this case?
thank's
Boss
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Apparently in FB a query can only get updated values after the updating transaction has been finished. Even within the same connection. As I understood a Commit is sufficient for most databases, but in FB it might be necessary to close the connection anyway. Something about hard and soft commits, I think.
(Search the forum on 'Firebird' and 'Commit', there's plenty of stuff about it)
So a different connection could be unsufficient.

Mark
ilboss
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: 13.09.2006, 08:51

Post by ilboss »

thank's for yor help
bye
Boss
Post Reply