Skip to content
Browse files

DB forge to use single quotes for ENUM/SET string delimiters

  • Loading branch information...
1 parent 78ca024 commit 356d4f40d545fb08117ee09da3d3ad8f0746686d @narfbg narfbg committed Nov 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/database/DB_forge.php
View
2 system/database/DB_forge.php
@@ -762,7 +762,7 @@ protected function _process_fields($create_table = FALSE)
$attributes['CONSTRAINT'] = $this->db->escape($attributes['CONSTRAINT']);
default:
$field['length'] = is_array($attributes['CONSTRAINT'])
- ? '("'.implode('","', $attributes['CONSTRAINT']).'")'
+ ? "('".implode("','", $attributes['CONSTRAINT'])."')"
: '('.$attributes['CONSTRAINT'].')';
break;
}

0 comments on commit 356d4f4

Please sign in to comment.
Something went wrong with that request. Please try again.