Merge pull request #1 from BlindGenius/master

Fixed Parser crash when column identifier contained 'as'
This commit is contained in:
Timothy Warren 2012-09-25 04:33:58 -07:00
commit bf6d7bcbd1

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]);
}
}