mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
not using distinct on MaxDB too
This commit is contained in:
parent
7cfabeb7c5
commit
25ba714000
@ -552,8 +552,17 @@
|
|||||||
if ($action == '' || $action == 'sp' || count($links))
|
if ($action == '' || $action == 'sp' || count($links))
|
||||||
{
|
{
|
||||||
$sql_query = "FROM phpgw_infolog $join WHERE ($filtermethod $pid $sql_query) $link_extra";
|
$sql_query = "FROM phpgw_infolog $join WHERE ($filtermethod $pid $sql_query) $link_extra";
|
||||||
// mssql cant use DISTICT of text columns (info_des) are involved
|
switch($this->db->Type)
|
||||||
$distinct = $this->db->Type != 'mssql' ? 'DISTINCT' : '';
|
{
|
||||||
|
// mssql and others cant use DISTICT of text columns (info_des) are involved
|
||||||
|
case 'mssql':
|
||||||
|
case 'sapdb':
|
||||||
|
case 'maxdb':
|
||||||
|
$distinct = '';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$distinct = 'DISTINCT';
|
||||||
|
}
|
||||||
$this->db->query($sql="SELECT $distinct phpgw_infolog.info_id ".$sql_query,__LINE__,__FILE__);
|
$this->db->query($sql="SELECT $distinct phpgw_infolog.info_id ".$sql_query,__LINE__,__FILE__);
|
||||||
$query['total'] = $this->db->num_rows();
|
$query['total'] = $this->db->num_rows();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user