Skip to content

Commit

Permalink
If a reserved word is found, it now returns it in the original case i…
Browse files Browse the repository at this point in the history
…nstead

of all uppercase.
  • Loading branch information
jdorn committed May 23, 2012
1 parent 638725c commit 94a3bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SqlFormatter.php
Expand Up @@ -159,7 +159,7 @@ protected static function getNextToken($string,&$type) {
if(in_array($word,self::$special_reserved)) $type = 'special reserved';
else $type = 'reserved';

return $word;
return substr($string,0,strlen($word));
}
}

Expand Down

0 comments on commit 94a3bfa

Please sign in to comment.