behaviour after commit / rolback

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
mariusz
Posts: 62
Joined: Wed 16 Jul 2008 21:04
Location: Poland / Poznan
Contact:

behaviour after commit / rolback

Post by mariusz » Fri 25 Jul 2008 12:31

How can I control an TQuery behaviour after call "commit" or "rollback" from my application code? Now, when I call commit or rollbank, after this I have no data im my query -> crdbgrid.

regards

xstef
Posts: 22
Joined: Sat 09 Sep 2006 20:44

Post by xstef » Sat 26 Jul 2008 22:47

Hi, commit and rollback close the cursor in the database, that is why you do not see any data. To be able to see data you must use commitretaining or rollbackretaining which do not close the cursor in the database and retain the data in the dataset.

Stefanos

Post Reply