]> git.nbdom.net Git - nb.git/commitdiff
lib/php/db/types/sqlite.php
authorDevops <sys@15gifts.com>
Mon, 29 May 2017 17:40:07 +0000 (18:40 +0100)
committerDevops <sys@15gifts.com>
Mon, 29 May 2017 17:40:07 +0000 (18:40 +0100)
lib/php/db/types/sqlite.php

index c54b69c4b7f941b6ab2572405eee501af558e9b3..ef77b85b3dc81dbd878a631eb89a8691401ef09d 100644 (file)
@@ -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',