summaryrefslogtreecommitdiffstats
path: root/system/database/DB_forge.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-19 19:13:11 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-19 19:13:11 +0100
commit356d4f40d545fb08117ee09da3d3ad8f0746686d (patch)
treeaa3e8f1c2e0a34d841d2068ba84edf3738e2db7c /system/database/DB_forge.php
parent78ca0245a5c3ad96c9b0d165d3b666b6e9826a57 (diff)
DB forge to use single quotes for ENUM/SET string delimiters
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 6a19096bf..06e47a6b4 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;
}