Mercurial > hg > orthanc
comparison Core/SQLite/Connection.cpp @ 137:0e97abc7b950
fix of a bug in older versions of sqlite
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Oct 2012 13:13:14 +0200 |
parents | c996319e90bc |
children | 2dece1526c06 |
comparison
equal
deleted
inserted
replaced
136:fe180eae201d | 137:0e97abc7b950 |
---|---|
39 #include <memory> | 39 #include <memory> |
40 #include <cassert> | 40 #include <cassert> |
41 #include <sqlite3.h> | 41 #include <sqlite3.h> |
42 #include <string.h> | 42 #include <string.h> |
43 | 43 |
44 #include <glog/logging.h> | |
44 | 45 |
45 | 46 |
46 namespace Orthanc | 47 namespace Orthanc |
47 { | 48 { |
48 namespace SQLite | 49 namespace SQLite |
147 } | 148 } |
148 | 149 |
149 | 150 |
150 bool Connection::Execute(const char* sql) | 151 bool Connection::Execute(const char* sql) |
151 { | 152 { |
153 VLOG(1) << "SQLite::Connection::Execute " << sql; | |
152 CheckIsOpen(); | 154 CheckIsOpen(); |
153 | 155 |
154 int error = sqlite3_exec(db_, sql, NULL, NULL, NULL); | 156 int error = sqlite3_exec(db_, sql, NULL, NULL, NULL); |
155 if (error == SQLITE_ERROR) | 157 if (error == SQLITE_ERROR) |
156 { | 158 { |