From b2c250c319f9c00e870103ed42f88268a5343edc Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 27 Jun 2011 14:38:36 +1000 Subject: [PATCH] Upstream Patch: Database enhancements for PTA --- .../modules/database/classes/kohana/database/query/builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/kohana/modules/database/classes/kohana/database/query/builder.php b/includes/kohana/modules/database/classes/kohana/database/query/builder.php index 48546b1..8d36e79 100644 --- a/includes/kohana/modules/database/classes/kohana/database/query/builder.php +++ b/includes/kohana/modules/database/classes/kohana/database/query/builder.php @@ -112,7 +112,7 @@ abstract class Kohana_Database_Query_Builder extends Database_Query { } elseif ($op === 'IN' AND is_array($value)) { - $value = '('.implode(',',$value).')'; + $value = $db->quote($value); } elseif ((is_string($value) AND array_key_exists($value, $this->_parameters)) === FALSE) {