Merge pull request #1 from BlindGenius/master
Fixed Parser crash when column identifier contained 'as'
This commit is contained in:
commit
bf6d7bcbd1
@ -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]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user