summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-11-19 02:52:14 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-11-19 02:52:14 +0100
commita00f90c2973111f0d95ac129eba967e8269ea0d6 (patch)
treedd108d79d6c97acb3bdce247362d28427856ccc5 /system
parenteae17d19fa32847f2b5a0a1b195f912dc8386ecf (diff)
PDO was not escaping strings for SET as array
Diffstat (limited to 'system')
-rw-r--r--system/database/DB_forge.php2
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;
}