cleaning up various codes.

This commit is contained in:
Taylor Otwell
2012-02-13 23:51:33 -06:00
parent f27ec7ab95
commit 479b3f6773
5 changed files with 54 additions and 17 deletions

View File

@@ -63,8 +63,7 @@ abstract class Grammar {
// If the value being wrapped contains a column alias, we need to
// wrap it a little differently as each segment must be wrapped
// and not the entire string. We'll split the value on the "as"
// joiner to extract the column and the alias.
// and not the entire string.
if (strpos(strtolower($value), ' as ') !== false)
{
$segments = explode(' ', $value);