From 1c58df8307af616c7d455383eea4d0dc1bef359f Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Mon, 20 Nov 2017 15:11:48 +0200 Subject: [PATCH] qc_sqlite: Copy database if tables are copied To be able to correctly report the fullname of a table we must copy the database, if it is available. --- query_classifier/qc_sqlite/qc_sqlite.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query_classifier/qc_sqlite/qc_sqlite.cc b/query_classifier/qc_sqlite/qc_sqlite.cc index e4bb2d113..bffd81442 100644 --- a/query_classifier/qc_sqlite/qc_sqlite.cc +++ b/query_classifier/qc_sqlite/qc_sqlite.cc @@ -705,7 +705,7 @@ public: char database[nDatabase + 1]; char table[nTable + 1]; - if (should_collect_database) + if (zDatabase) { strcpy(database, zDatabase); exposed_sqlite3Dequote(database);