Mercurial > hg > orthanc
diff Core/SQLite/Connection.cpp @ 1585:9a3e03d6a4d5
fix sqlite standalone build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 19:33:18 +0200 |
parents | bd1889029cbb |
children | b1291df2f780 |
line wrap: on
line diff
--- a/Core/SQLite/Connection.cpp Tue Aug 25 17:59:04 2015 +0200 +++ b/Core/SQLite/Connection.cpp Tue Aug 25 19:33:18 2015 +0200 @@ -162,7 +162,10 @@ int error = sqlite3_exec(db_, sql, NULL, NULL, NULL); if (error == SQLITE_ERROR) { +#if ORTHANC_SQLITE_STANDALONE != 1 LOG(ERROR) << "SQLite execute error: " << sqlite3_errmsg(db_); +#endif + throw OrthancSQLiteException(ErrorCode_SQLiteExecute); } else