]> git.nbdom.net Git - nb.git/commitdiff
lib/php/db/table.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 8 Mar 2017 15:53:35 +0000 (15:53 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 8 Mar 2017 15:53:35 +0000 (15:53 +0000)
lib/php/db/table.php

index f49c612108081380daed4152fe3344ffa3d25f4d..641b05e1efc865bda03685c7987bc8384765b533 100644 (file)
@@ -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);