|
@@ 1010-1013 (lines=4) @@
|
| 1007 |
|
$save_selects = $selects; |
| 1008 |
|
// we only select cal_table.cal_id (and not cal_table.*) to be able to use DISTINCT (eg. MsSQL does not allow it for text-columns) |
| 1009 |
|
$selects[0]['cols'] = "$this->cal_table.cal_id,cal_start"; |
| 1010 |
|
if (!isset($params['cols']) && !$params['no_integration'] && $this->db->capabilities['union']) |
| 1011 |
|
{ |
| 1012 |
|
self::get_union_selects($selects,$start,$end,$users,$cat_id,$filter,$params['query'],$params['users']); |
| 1013 |
|
} |
| 1014 |
|
$this->total = $this->db->union($selects, __LINE__, __FILE__)->NumRows(); |
| 1015 |
|
$selects = $save_selects; |
| 1016 |
|
} |
|
@@ 1017-1020 (lines=4) @@
|
| 1014 |
|
$this->total = $this->db->union($selects, __LINE__, __FILE__)->NumRows(); |
| 1015 |
|
$selects = $save_selects; |
| 1016 |
|
} |
| 1017 |
|
if (!isset($params['cols']) && !$params['no_integration'] && $this->db->capabilities['union']) |
| 1018 |
|
{ |
| 1019 |
|
self::get_union_selects($selects,$start,$end,$users,$cat_id,$filter,$params['query'],$params['users']); |
| 1020 |
|
} |
| 1021 |
|
$rs = $this->db->union($selects,__LINE__,__FILE__,$params['order'],$offset,$num_rows); |
| 1022 |
|
} |
| 1023 |
|
//error_log(__METHOD__."() useUnionQuery=$useUnionQuery --> query took ".(microtime(true)-$starttime).'s '.$rs->sql); |