From: root Date: Tue, 8 Aug 2017 08:15:38 +0000 (+0100) Subject: lib/php/db.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=9a6150b2bc5997743806237fb5bc9ad879457955;p=nb.git lib/php/db.php --- diff --git a/lib/php/db.php b/lib/php/db.php index 9fb9f064..019560ea 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -330,7 +330,6 @@ class Db extends nb { public function row($sql,$sep=' ') { $query = $this->query($sql); -#bye($sql); $result = $query->fetch(PDO::FETCH_NUM); if (!is_array($result)) return $result; return join($sep,$result); diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 4184b43a..2d9c5738 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -1894,6 +1894,7 @@ Class Table extends nb { if (!$this->sql) return; $sql_count = "SELECT COUNT(*) FROM ($this->sql) _table_count" ; + #debug([$this->name,$sql_count]); # NB 08.08.17 if (preg_match('/SELECT.*SELECT|UNION/i',$this->sql)) { # NB 08.08.17 $sql_count = "SELECT COUNT(*) FROM ($this->sql) _table_count" ; # NB 08.08.17 } else {