Fixed AS issue when field names contain 'as' e.g. taskid

This commit is contained in:
Kieren Eaton 2012-09-25 12:52:28 +08:00
parent c963dc29f2
commit 81dcd40daa

View File

@ -302,7 +302,7 @@ class Query_Builder {
{
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]);
}
}