summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-03-10 18:55:11 +0100
committerAndrey Andreev <narf@devilix.net>2014-03-10 18:55:11 +0100
commitfde170c0640a04e0d9d686bfa368e1f368cc1ba1 (patch)
treebad6d91cac522c96d2bb654c0e3477ff87eafb6c /system/database
parent8155baba6e9a24235d7324427d926e2200fe566d (diff)
Fix #2928, #2929
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_forge.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php
index bcf7a8d71..38e4ccf2c 100644
--- a/system/database/DB_forge.php
+++ b/system/database/DB_forge.php
@@ -809,6 +809,7 @@ abstract class CI_DB_forge {
$field['length'] = is_array($attributes['CONSTRAINT'])
? "('".implode("','", $attributes['CONSTRAINT'])."')"
: '('.$attributes['CONSTRAINT'].')';
+ break;
default:
$field['length'] = is_array($attributes['CONSTRAINT'])
? '('.implode(',', $attributes['CONSTRAINT']).')'