Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

PDO was not escaping strings for SET as array

  • Loading branch information...
commit a00f90c2973111f0d95ac129eba967e8269ea0d6 1 parent eae17d1
Phil Sturgeon philsturgeon authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  system/database/DB_forge.php
2  system/database/DB_forge.php
@@ -762,7 +762,7 @@ protected function _process_fields($create_table = FALSE)
762 762 $attributes['CONSTRAINT'] = $this->db->escape($attributes['CONSTRAINT']);
763 763 default:
764 764 $field['length'] = is_array($attributes['CONSTRAINT'])
765   - ? '('.implode(',', $attributes['CONSTRAINT']).')'
  765 + ? '("'.implode('","', $attributes['CONSTRAINT']).'")'
766 766 : '('.$attributes['CONSTRAINT'].')';
767 767 break;
768 768 }

0 comments on commit a00f90c

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