Skip to content

Commit

Permalink
DB forge to use single quotes for ENUM/SET string delimiters
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Nov 19, 2012
1 parent 78ca024 commit 356d4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/database/DB_forge.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ protected function _process_fields($create_table = FALSE)
$attributes['CONSTRAINT'] = $this->db->escape($attributes['CONSTRAINT']); $attributes['CONSTRAINT'] = $this->db->escape($attributes['CONSTRAINT']);
default: default:
$field['length'] = is_array($attributes['CONSTRAINT']) $field['length'] = is_array($attributes['CONSTRAINT'])
? '("'.implode('","', $attributes['CONSTRAINT']).'")' ? "('".implode("','", $attributes['CONSTRAINT'])."')"
: '('.$attributes['CONSTRAINT'].')'; : '('.$attributes['CONSTRAINT'].')';
break; break;
} }
Expand Down

0 comments on commit 356d4f4

Please sign in to comment.