From: Nicolas Boisselier Date: Wed, 8 Mar 2017 15:53:35 +0000 (+0000) Subject: lib/php/db/table.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=2f147c712305ea981a9dcea8ad2063b49848ae39;p=nb.git lib/php/db/table.php --- diff --git a/lib/php/db/table.php b/lib/php/db/table.php index f49c6121..641b05e1 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -2110,7 +2110,7 @@ Class Table extends nb { $this->create_temporary(); $sql = $this->db()->method('tables'); - if (!self::p('count')) $sql .= " LIMIT 1"; + if (!self::p('count')) $sql .= " LIMIT 0"; $sql = "SELECT * FROM ($sql) t WHERE name=".$this->db()->quote($this->name); $sth = $this->db()->conn->query($sql,PDO::FETCH_ASSOC);