diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-11-19 02:52:14 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-11-19 02:52:14 +0100 |
commit | a00f90c2973111f0d95ac129eba967e8269ea0d6 (patch) | |
tree | dd108d79d6c97acb3bdce247362d28427856ccc5 | |
parent | eae17d19fa32847f2b5a0a1b195f912dc8386ecf (diff) |
PDO was not escaping strings for SET as array
-rw-r--r-- | system/database/DB_forge.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |