Issue 2694: Add support for CAST and CONVERT functions

git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@12237 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2012-11-15 16:34:32 +00:00
parent 6f66f4f8b9
commit 156d7655e9
4 changed files with 39 additions and 1 deletions

View file

@ -144,7 +144,7 @@
if(strpos($match,')') !== false) continue;
if(in_array($match, array(',', '.'))) continue;
if($brackets == $total_brackets){
if(!is_numeric($match)) {
if(!is_numeric($match) && !in_array(strtoupper($match), array('UNSIGNED', 'INTEGER', 'AS'))) {
$match = $this->escapeColumnExpression($match);
}
}