XML쿼리에서 CAST(regdate as DATE) 와 같은 함수 사용시 발생하는 오류 수정

datatype도 escape되는 바람에 발생된 문제로, 우선 대문자에 한하여 escape 되지 않도록 수정하였습니다.
주석에 떡하니 된다고 해놓고 실제로는...
This commit is contained in:
conory 2018-09-15 00:58:50 +09:00
parent 9b6e88bc33
commit 6d081b9fec

View file

@ -264,7 +264,7 @@ class DBParser
}
if($brackets == $total_brackets)
{
if(!is_numeric($match) && !in_array(strtoupper($match), array('UNSIGNED', 'INTEGER', 'AS')))
if(!is_numeric($match) && !in_array(strtoupper($match), array('UNSIGNED', 'INTEGER', 'AS')) && !preg_match('/^[A-Z]+$/', $match))
{
$match = $this->escapeColumnExpression($match);
}