From a00f90c2973111f0d95ac129eba967e8269ea0d6 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon Date: Sun, 18 Nov 2012 20:52:14 -0500 Subject: PDO was not escaping strings for SET as array --- system/database/DB_forge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/database/DB_forge.php') diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php index 21046012a..6a19096bf 100644 --- a/system/database/DB_forge.php +++ b/system/database/DB_forge.php @@ -762,7 +762,7 @@ abstract class CI_DB_forge { $attributes['CONSTRAINT'] = $this->db->escape($attributes['CONSTRAINT']); default: $field['length'] = is_array($attributes['CONSTRAINT']) - ? '('.implode(',', $attributes['CONSTRAINT']).')' + ? '("'.implode('","', $attributes['CONSTRAINT']).'")' : '('.$attributes['CONSTRAINT'].')'; break; } -- cgit v1.2.3-24-g4f1b