src/sql/drivers/sqlite/qsql_sqlite.cpp
branchRCL_3
changeset 13 c0432d11811c
parent 7 3f74d0d4af4c
equal deleted inserted replaced
12:cc75c76972ee 13:c0432d11811c
   257             // must be first call.
   257             // must be first call.
   258             initColumns(true);
   258             initColumns(true);
   259         q->setAt(QSql::AfterLastRow);
   259         q->setAt(QSql::AfterLastRow);
   260         sqlite3_reset(stmt);
   260         sqlite3_reset(stmt);
   261         return false;
   261         return false;
       
   262     case SQLITE_CONSTRAINT:
   262     case SQLITE_ERROR:
   263     case SQLITE_ERROR:
   263         // SQLITE_ERROR is a generic error code and we must call sqlite3_reset()
   264         // SQLITE_ERROR is a generic error code and we must call sqlite3_reset()
   264         // to get the specific error message.
   265         // to get the specific error message.
   265         res = sqlite3_reset(stmt);
   266         res = sqlite3_reset(stmt);
   266         q->setLastError(qMakeError(access, QCoreApplication::translate("QSQLiteResult",
   267         q->setLastError(qMakeError(access, QCoreApplication::translate("QSQLiteResult",