Mercurial > hg > orthanc
comparison Core/SQLite/Connection.cpp @ 1958:c746e2d42ac8
extended error codes for SQLite
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 06 Apr 2016 14:41:26 +0200 |
parents | b1291df2f780 |
children | fa5ad4368fe3 |
comparison
equal
deleted
inserted
replaced
1957:b10a165e0e36 | 1958:c746e2d42ac8 |
---|---|
161 | 161 |
162 int error = sqlite3_exec(db_, sql, NULL, NULL, NULL); | 162 int error = sqlite3_exec(db_, sql, NULL, NULL, NULL); |
163 if (error == SQLITE_ERROR) | 163 if (error == SQLITE_ERROR) |
164 { | 164 { |
165 #if ORTHANC_SQLITE_STANDALONE != 1 | 165 #if ORTHANC_SQLITE_STANDALONE != 1 |
166 LOG(ERROR) << "SQLite execute error: " << sqlite3_errmsg(db_); | 166 LOG(ERROR) << "SQLite execute error: " << sqlite3_errmsg(db_) |
167 << " (" << sqlite3_extended_errcode(db_) << ")"; | |
167 #endif | 168 #endif |
168 | 169 |
169 throw OrthancSQLiteException(ErrorCode_SQLiteExecute); | 170 throw OrthancSQLiteException(ErrorCode_SQLiteExecute); |
170 } | 171 } |
171 else | 172 else |