equal
deleted
inserted
replaced
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", |