summaryrefslogtreecommitdiffstats
path: root/system/database/DB_forge.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/database/DB_forge.php')
-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;
}