Now the COMMIT fail and i show a message and do nothing. Is that OK?
Qt Code:
db.transaction(); QSqlQuery q; if ( !q.exec("SELECT;") ) db.rollback(); q.clear(); if(!db.commit())To copy to clipboard, switch view to plain text mode
Now the COMMIT fail and i show a message and do nothing. Is that OK?
Qt Code:
db.transaction(); QSqlQuery q; if ( !q.exec("SELECT;") ) db.rollback(); q.clear(); if(!db.commit())To copy to clipboard, switch view to plain text mode
Bookmarks