Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

PDO was not escaping strings for SET as array

  • Loading branch information...
commit a00f90c2973111f0d95ac129eba967e8269ea0d6 1 parent eae17d1
Phil Sturgeon philsturgeon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  system/database/DB_forge.php
2  system/database/DB_forge.php
View
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.