Fixed AS issue when field names contain 'as' e.g. taskid
This commit is contained in:
parent
c963dc29f2
commit
81dcd40daa
@ -302,7 +302,7 @@ class Query_Builder {
|
|||||||
{
|
{
|
||||||
if (stripos($field, 'as') !== FALSE)
|
if (stripos($field, 'as') !== FALSE)
|
||||||
{
|
{
|
||||||
$fields_array[$key] = preg_split('`as`i', $field);
|
$fields_array[$key] = preg_split('` as `i', $field);
|
||||||
$fields_array[$key] = array_map('trim', $fields_array[$key]);
|
$fields_array[$key] = array_map('trim', $fields_array[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user