From 2eb10cb11296dfddf7d12d2fb727762d0459b8c1 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 6 Jan 2016 21:45:13 +0000 Subject: [PATCH] no more SQL_CALC_FOUND_ROWS --- lib/php/db/table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 8a21bba5..bd688701 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -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(); -- 2.47.3