QSqlDatabase Transactions,QSqlQuery Creation and QSqlQuery finish
I noticed that the QSqlDatabase documentation says that
"Note: When using transactions, you must start the transaction before you
create your query."
Doesn't this limit the usefulness of QSqlQuery::prepare() in case of
transactions if you have to create the query only after you have started
the transaction? The same question has been asked here... but no
satisfactory answer was provided.
My another question is that if you prepare a query using
QSqlQuery::prepare() and call QSqlQuery::finish(), should the query be
prepared again? I am asking this because there is no mention of prepared
queries in case QSqlQuery::finish() in docs.
No comments:
Post a Comment