Issue #2983452 by ridhimaabrol24, Kwadz, cburschka, jungle, somersoft,...
Issue #2983452 by ridhimaabrol24, Kwadz, cburschka, jungle, somersoft, julienjoye, dhirendra.mishra, beram, daffie, alexpott: Improve support for SQLite in memory database
(cherry picked from commit ce8dfe3d)
@@ -183,7 +183,7 @@ public function __destruct() {
$count=$this->query('SELECT COUNT(*) FROM '.$prefix.'.sqlite_master WHERE type = :type AND name NOT LIKE :pattern',[':type'=>'table',':pattern'=>'sqlite_%'])->fetchField();
// We can prune the database file if it doesn't have any tables.