mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
Convert ambiguous column to tablename.column name
This commit is contained in:
parent
6670964d01
commit
7134b9716e
@ -980,7 +980,8 @@ class so_sql
|
|||||||
$colums = array();
|
$colums = array();
|
||||||
foreach($only_keys as $key => $col)
|
foreach($only_keys as $key => $col)
|
||||||
{
|
{
|
||||||
$colums[] = ($db_col = array_search($col,$this->db_cols)) ? $db_col : $col;
|
//Convert ambiguous columns to prefixed tablename.column name
|
||||||
|
$colums[] = ($db_col = array_search($col,$this->db_cols)) ? $this->table_name .'.'.$db_col.' AS '.$col :$col;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif (!$only_keys)
|
elseif (!$only_keys)
|
||||||
|
Loading…
Reference in New Issue
Block a user