From: Devops Date: Mon, 29 May 2017 17:40:07 +0000 (+0100) Subject: lib/php/db/types/sqlite.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=25733ac8796f56de46035fc607cf2a7fce4dbafd;p=nb.git lib/php/db/types/sqlite.php --- diff --git a/lib/php/db/types/sqlite.php b/lib/php/db/types/sqlite.php index c54b69c4..ef77b85b 100644 --- a/lib/php/db/types/sqlite.php +++ b/lib/php/db/types/sqlite.php @@ -78,11 +78,13 @@ $DB_TYPES['sqlite'] = array ( $all = 'SELECT name,type,"main" as database FROM sqlite_temp_master'; foreach ($dbs as $db) { $all .= ($all ? ' UNION ' : '').str_replace('sqlite_master',$db['name'].'.sqlite_master', - "SELECT name,type,'".$db['name']."' as database FROM sqlite_master WHERE type IN('table','view') AND name NOT LIKE 'sqlite_%'" +# NB 29.05.17 Use full name "SELECT name,type,'".$db['name']."' as database FROM sqlite_master WHERE type IN('table','view') AND name NOT LIKE 'sqlite_%'" + "SELECT '".$db['name'].".'||name,type,'".$db['name']."' as database FROM sqlite_master WHERE type IN('table','view') AND name NOT LIKE 'sqlite_%'" ); #bye($all); } + #if ($Db->id=='15g-log') debug($all); return $all; }, #'tables' => '.tables',