]> git.nbdom.net Git - nb.git/commitdiff
type.tables
authorNicolas Boisselier <nicolas.boisselier@semantico.com>
Mon, 5 Sep 2016 16:02:01 +0000 (17:02 +0100)
committerNicolas Boisselier <nicolas.boisselier@semantico.com>
Mon, 5 Sep 2016 16:02:01 +0000 (17:02 +0100)
lib/php/db/types/sqlite.php

index 10b0ab8df4a0e3f3ce6d9e9f5bfdbca8a6de3cb9..811cdc771395c4c8ea89b15837721ba5ce2174ad 100644 (file)
@@ -69,6 +69,7 @@ $DB_TYPES['sqlite'] = array (
 'tables' => function($Db) {
   # NB 03.09.16
   # Handle attach mechnisum
+  #$Db->tables();
   $dbs = $Db->databases();
   $debug = 0;#$Db->p('db')=='all';
 
@@ -80,8 +81,9 @@ $DB_TYPES['sqlite'] = array (
   $sql = '';
   foreach ($dbs as $db) {
     $sql .= ($sql ? ' UNION ' : '').str_replace('sqlite_',$db['name'].'.sqlite_',
+      #"SELECT name as name,type FROM sqlite_master WHERE type IN('table','view') AND name NOT LIKE 'sqlite_%'"
       "SELECT '".$db['name'].".'||name as name,type FROM sqlite_master WHERE type IN('table','view') AND name NOT LIKE 'sqlite_%'"
-    ); 
+    );
   }
   if ($debug) debug($sql);