Show temporary tables and views in Structure and Browse tabs

Also show temporary tables in the Database Structure and the Browse Data
tabs as well as in the export dialogs etc.
This commit is contained in:
Martin Kleusberg
2014-06-07 13:38:24 +02:00
parent 8c8187740d
commit 7139ad0086
+1 -1
View File
@@ -765,7 +765,7 @@ void DBBrowserDB::updateSchema( )
if(!isOpen())
return;
QString statement = "SELECT type, name, sql, tbl_name FROM sqlite_master;";
QString statement = "SELECT type,name,sql,tbl_name FROM sqlite_master UNION SELECT type,name,sql,tbl_name FROM sqlite_temp_master;";
QByteArray utf8Statement = statement.toUtf8();
err=sqlite3_prepare_v2(_db, utf8Statement, utf8Statement.length(),