mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 16:49:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7892 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
19b3e705fb
commit
30c6c10a87
1 changed files with 20 additions and 8 deletions
|
|
@ -432,16 +432,28 @@
|
||||||
$value = '%'.$value.'%';
|
$value = '%'.$value.'%';
|
||||||
break;
|
break;
|
||||||
case 'notin' :
|
case 'notin' :
|
||||||
if(!is_array($value)) $value = array($value);
|
if(is_array($value))
|
||||||
$value = $this->addQuotesArray($value);
|
{
|
||||||
if($type=='number') return join(',',$value);
|
$value = $this->addQuotesArray($value);
|
||||||
else return "'". join("','",$value)."'";
|
if($type=='number') return join(',',$value);
|
||||||
|
else return "'". join("','",$value)."'";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return $value;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'in' :
|
case 'in' :
|
||||||
if(!is_array($value)) $value = array($value);
|
if(is_array($value))
|
||||||
$value = $this->addQuotesArray($value);
|
{
|
||||||
if($type=='number') return join(',',$value);
|
$value = $this->addQuotesArray($value);
|
||||||
else return "'". join("','",$value)."'";
|
if($type=='number') return join(',',$value);
|
||||||
|
else return "'". join("','",$value)."'";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return $value;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'between' :
|
case 'between' :
|
||||||
if(!is_array($value)) $value = array($value);
|
if(!is_array($value)) $value = array($value);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue