summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-11-16 14:44:24 +0100
committerAndrey Andreev <narf@devilix.net>2015-11-16 14:44:24 +0100
commit9e2c7b9dd7e87a94c5a3696bc326cbbec5da7bb8 (patch)
treeb98044e90665d81c28d670c51a6f1fd67b3237dd /system
parentb06b5c46ef59534cb3d0eb7e9b95c0c5720ee5e5 (diff)
[ci skip] Fix #4245
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 f9cf76a14..d2302b2f2 100644
--- a/system/database/DB_forge.php
+++ b/system/database/DB_forge.php
@@ -781,7 +781,7 @@ abstract class CI_DB_forge {
case 'SET':
$attributes['CONSTRAINT'] = $this->db->escape($attributes['CONSTRAINT']);
$field['length'] = is_array($attributes['CONSTRAINT'])
- ? "('".implode("','", $attributes['CONSTRAINT'])."')"
+ ? "(".implode(",", $attributes['CONSTRAINT']).")"
: '('.$attributes['CONSTRAINT'].')';
break;
default: