diff options
author | Andrey Andreev <narf@devilix.net> | 2015-11-16 14:44:24 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-11-16 14:44:24 +0100 |
commit | 9e2c7b9dd7e87a94c5a3696bc326cbbec5da7bb8 (patch) | |
tree | b98044e90665d81c28d670c51a6f1fd67b3237dd /system/database | |
parent | b06b5c46ef59534cb3d0eb7e9b95c0c5720ee5e5 (diff) |
[ci skip] Fix #4245
Diffstat (limited to 'system/database')
-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 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: |