Convert ambiguous column to tablename.column name

This commit is contained in:
Hadi Nategh 2014-12-15 16:57:45 +00:00
parent 7a0988244d
commit 81cc0f35f7

View File

@ -980,7 +980,8 @@ class so_sql
$colums = array();
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)