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.
This commit is contained in:
Johan Wikman 2017-11-20 15:11:48 +02:00
parent 604502e1cb
commit 1c58df8307

View File

@ -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);