]> git.nbdom.net Git - nb.git/commitdiff
lib/php/db/table.php
authorDevops <sys@15gifts.com>
Wed, 31 May 2017 11:09:22 +0000 (12:09 +0100)
committerDevops <sys@15gifts.com>
Wed, 31 May 2017 11:09:22 +0000 (12:09 +0100)
lib/php/db.php
lib/php/db/table.php

index 6bb2c40fdfa54373146e7e62a50fcfd68df82094..019560eaa3289e2235d93236bd1f668654d7323a 100644 (file)
@@ -386,7 +386,6 @@ class Db extends nb {
       $this->tables[$name]->__construct($name,$params);
     }
 
-    #if (empty($this->tables[$name]->type)) debug($this->tables[$name]);
     return $this->tables[$name];
   }
 
@@ -503,9 +502,6 @@ class Db extends nb {
       $sql = $this->method('tables');
 
       if ($sql and !empty($this->conn)) {
-#bye([">>",$this->tables,$sql]);
-#$sql = "SELECT 'shell_functions','table';";
-#$sql = "SELECT name,type FROM (SELECT * FROM sqlite_master UNION ALL SELECT * FROM sqlite_temp_master) WHERE type IN('table','view') AND name NOT LIKE 'sqlite_%'";
         foreach ($this->conn->query($sql,PDO::FETCH_ASSOC) as $row) {
           $name = current($row);
 
index 1041a255133d534e9501db4e9afc22053373d4ef..e7704c6d09f7260be01c7f21c73c89d8c16fc21d 100644 (file)
@@ -2076,7 +2076,6 @@ Class Table extends nb {
   }
 
   public function status($key=null) {
-    #if ($this->type!='table' and $this->type=!'view') { }
     if (!isset($this->status)) {
       $this->create_temporary();