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:
@ -705,7 +705,7 @@ public:
|
|||||||
char database[nDatabase + 1];
|
char database[nDatabase + 1];
|
||||||
char table[nTable + 1];
|
char table[nTable + 1];
|
||||||
|
|
||||||
if (should_collect_database)
|
if (zDatabase)
|
||||||
{
|
{
|
||||||
strcpy(database, zDatabase);
|
strcpy(database, zDatabase);
|
||||||
exposed_sqlite3Dequote(database);
|
exposed_sqlite3Dequote(database);
|
||||||
|
Reference in New Issue
Block a user