PDA

View Full Version : SQL transactions with QSqlQueryModel/QTableView



estanisgeyer
10th June 2009, 03:39
Hi guys,

How best to work with transactions with QSqlQueryModel and QTableView? My question is how and when the commit call as appropriate, since the QTableView is doing a fetch from the database.

Thanks,

Marcelo E. Geyer
Brazil

estanisgeyer
11th June 2009, 03:49
Anyone? I am using the Firebird database and to change the transaction type to "snapshot" in a SELECT. The QT documentation says little about it.

Thanks for help.

Marcelo E. Geyer

wysota
15th June 2009, 19:52
We can't decide for you when to begin or end a transaction... That depends solely on the logic of your application.