Upstream Patch: Enable database builder to use WHERE_IN
This commit is contained in:
parent
0504810816
commit
d52b86214c
@ -110,6 +110,10 @@ abstract class Kohana_Database_Query_Builder extends Database_Query {
|
||||
// Quote the min and max value
|
||||
$value = $min.' AND '.$max;
|
||||
}
|
||||
elseif ($op === 'IN' AND is_array($value))
|
||||
{
|
||||
$value = '('.implode(',',$value).')';
|
||||
}
|
||||
elseif ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE)
|
||||
{
|
||||
// Quote the value, it is not a parameter
|
||||
|
Reference in New Issue
Block a user