"fix for bug #747: Postgres SQL error searching tracker items"

This commit is contained in:
Ralf Becker 2007-05-21 04:49:57 +00:00
parent c7bf33ab2c
commit 94dced8024

View File

@ -680,7 +680,7 @@ class so_sql
}
elseif (!$need_full_no_count && (!$join || stripos($join,'LEFT JOIN')!==false))
{
$this->db->select($this->table_name,'COUNT(*)',$query,__LINE__,__FILE__);
$this->db->select($this->table_name,'COUNT(*)',$query,__LINE__,__FILE__,false,'',false,0,$join);
$this->total = $this->db->next_record() ? (int) $this->db->f(0) : false;
}
else // cant do a count, have to run the query without limit