mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
log sql by setting $this->debug = true, before calling so_sql::search()
This commit is contained in:
parent
4cb4835544
commit
ac67c9ed80
@ -1033,6 +1033,7 @@ class so_sql
|
||||
}
|
||||
}
|
||||
$rs = $this->db->union($union,__LINE__,__FILE__,$order_by,$start,$num_rows);
|
||||
if ($this->debug) error_log(__METHOD__."() ".$this->db->Query_ID->sql);
|
||||
|
||||
$cols = $union_cols;
|
||||
$union = $union_cols = array();
|
||||
@ -1056,6 +1057,7 @@ class so_sql
|
||||
}
|
||||
$rs = $this->db->select($this->table_name,$mysql_calc_rows.$colums,$query,__LINE__,__FILE__,
|
||||
$start,$order_by,$this->app,$num_rows,$join);
|
||||
if ($this->debug) error_log(__METHOD__."() ".$this->db->Query_ID->sql);
|
||||
$cols = $this->_get_columns($only_keys,$extra_cols);
|
||||
}
|
||||
if ((int) $this->debug >= 4) echo "<p>sql='{$this->db->Query_ID->sql}'</p>\n";
|
||||
|
Loading…
Reference in New Issue
Block a user