mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 10:49:54 +09:00
fix a bug where empty argument were escaped
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8584 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
76019a4b2b
commit
652cc1549a
1 changed files with 1 additions and 0 deletions
|
|
@ -47,6 +47,7 @@
|
|||
$dbParser = XmlQueryParser::getDBParser();
|
||||
return $dbParser->parseExpression($value);
|
||||
}
|
||||
if(!isset($value) || $value === '') return null;
|
||||
if(in_array($this->type, array('date', 'varchar', 'char','text', 'bigtext'))){
|
||||
if(!is_array($value))
|
||||
$value = '\''.$value.'\'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue