From 6fb6dcc6734ba16ac20948475520913df44d07e2 Mon Sep 17 00:00:00 2001 From: Devops Date: Wed, 31 May 2017 12:09:22 +0100 Subject: [PATCH] lib/php/db/table.php --- lib/php/db.php | 4 ---- lib/php/db/table.php | 1 - 2 files changed, 5 deletions(-) diff --git a/lib/php/db.php b/lib/php/db.php index 6bb2c40f..019560ea 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -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); diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 1041a255..e7704c6d 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -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(); -- 2.47.3