]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Change sqlite3_errstr to sqlite3_errmsg
authorEaseTheWorld <easetheworld@gmail.com>
Wed, 25 Jan 2017 23:42:53 +0000 (08:42 +0900)
committerMatt Barr <matthew.barr@intel.com>
Wed, 26 Apr 2017 04:38:03 +0000 (14:38 +1000)
sqlite3_errstr was introduced in 3.7.15 (http://sqlite.org/changes.html)
which breaks build in redhat6 (sqlite3 ver 3.6.X)
and in line 77, sqlite3_errmsg is already used.

tools/hsbench/data_corpus.cpp

index 55bfe93af076f3db4aeec926706fbfde3b66e988..8e761ec34fc503aa2ea82d682935181672fb1121 100644 (file)
@@ -110,7 +110,7 @@ vector<DataBlock> readCorpus(const string &filename) {
     if (status != SQLITE_DONE) {
         ostringstream oss;
         oss << "Error retrieving blocks from corpus: "
-            << sqlite3_errstr(status);
+            << sqlite3_errmsg(db);
 
         status = sqlite3_finalize(statement);
         assert(status == SQLITE_OK);