Query not reflecting table changes

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
JHenshawJr
Posts: 3
Joined: Mon 22 Jan 2007 22:21

Query not reflecting table changes

Post by JHenshawJr » Mon 22 Jan 2007 22:26

I have a query & Grid form and then button to a new form where record is inserted. After return, no matter what I do: refresh, requery again, reopen transaction, etc... The query grid will not show the new record, though I see it fine in the IBCONSOLE data. Is there something I'm not doing here??

I am using Borland C++ Builder 6.0 and the demo download of CoreLabs Interbase components.

Thanks for any assistance or ideas.

Joe

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Tue 23 Jan 2007 07:34

I suppose that this issue is caused by transaction isolation level, in InterBase and IBDAC by default it is Snapshot. The solution is to use transaction with "Read Committed" isolation level.
You can do this by accessing IBCConnection.DefaultTransaction.Params property in Object Inspector and setting "Read Committed" Transaction Kind.

If the problem persists please send us complete sample to demonstrate it and include script to create server objects .

JHenshawJr
Posts: 3
Joined: Mon 22 Jan 2007 22:21

That worked!

Post by JHenshawJr » Tue 23 Jan 2007 16:15

Thanks for the great support! That worked, now after return and requery
everything is displaying correctly. Thanks again! Joe

Post Reply