Fixed "IN" query issue when arguments are strings.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8798 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-08-17 17:11:34 +00:00
parent 51a1d0a37e
commit e46231ae96
2 changed files with 68 additions and 0 deletions

View file

@ -7,6 +7,7 @@
function ConditionArgument($name, $value, $operation){
if(isset($value) && in_array($operation, array('in', 'notin', 'between')) && !is_array($value)){
$value = str_replace(' ', '', $value);
$value = str_replace('\'', '', $value);
$value = explode(',', $value);
}
parent::Argument($name, $value);