summaryrefslogtreecommitdiffstats
path: root/src/sql
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2010-04-20 02:07:22 (GMT)
committerBill King <bill.king@nokia.com>2010-04-20 02:07:22 (GMT)
commitdd478a4b829921c9dfeb23110177a30f32eca5af (patch)
tree4acb0bd7f0eaa61c2380580ff4835f74f0913ec7 /src/sql
parent84f0ae22f4b1e7882f4c0fff2a1f5bc47ebceb37 (diff)
downloadQt-dd478a4b829921c9dfeb23110177a30f32eca5af.zip
Qt-dd478a4b829921c9dfeb23110177a30f32eca5af.tar.gz
Qt-dd478a4b829921c9dfeb23110177a30f32eca5af.tar.bz2
Fix sqlite driver doesn't return error message RAISE by a trigger.
Task-number: QTBUG-7988 Reviewed-by: Justin McPherson
Diffstat (limited to 'src/sql')
-rw-r--r--src/sql/drivers/sqlite/qsql_sqlite.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sql/drivers/sqlite/qsql_sqlite.cpp b/src/sql/drivers/sqlite/qsql_sqlite.cpp
index d3be304..9b9d30b 100644
--- a/src/sql/drivers/sqlite/qsql_sqlite.cpp
+++ b/src/sql/drivers/sqlite/qsql_sqlite.cpp
@@ -259,6 +259,7 @@ bool QSQLiteResultPrivate::fetchNext(QSqlCachedResult::ValueCache &values, int i
q->setAt(QSql::AfterLastRow);
sqlite3_reset(stmt);
return false;
+ case SQLITE_CONSTRAINT:
case SQLITE_ERROR:
// SQLITE_ERROR is a generic error code and we must call sqlite3_reset()
// to get the specific error message.