Upstream Patch: Enable database builder to use WHERE_IN

This commit is contained in:
Deon George 2011-05-26 10:19:31 +10:00
parent 0504810816
commit d52b86214c

View File

@ -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