]> git.nbdom.net Git - nb.git/commitdiff
no more SQL_CALC_FOUND_ROWS
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 6 Jan 2016 21:45:13 +0000 (21:45 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 6 Jan 2016 21:45:13 +0000 (21:45 +0000)
lib/php/db/table.php

index 8a21bba5925c2bcdae4e0f4551c33896f8bc63f0..bd688701180a7ede0c449abc4333f07235ae4485 100644 (file)
@@ -586,7 +586,7 @@ FROM pg_catalog.pg_attribute a WHERE a.attrelid = (SELECT c.oid FROM pg_catalog.
     // Select
     //
     $where = $this->where_criterias($this->p(),$this->p('op'));
-    $select_count = ( ($where and $this->db->type =='mysql') ? " SQL_CALC_FOUND_ROWS" : "");
+    $select_count = ( (false and $where and $this->db->type =='mysql') ? " SQL_CALC_FOUND_ROWS" : "");
 
     $sql = "SELECT$select_count *" . $this->select_extras();
     $sql .= " FROM ".$this->sql_name();