Permalink
Browse files

Fix an escape_identifiers() bug

  • Loading branch information...
1 parent 7ec4480 commit a7ddd2d48ec30f10250b045dbec651fc0e07532e @narfbg narfbg committed Nov 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/database/DB_driver.php
@@ -1236,7 +1236,7 @@ public function field_data($table = '')
*/
public function escape_identifiers($item)
{
- if ($this->_escape_char === '' OR empty($item))
+ if ($this->_escape_char === '' OR empty($item) OR in_array($item, $this->_reserved_identifiers))
{
return $item;
}

0 comments on commit a7ddd2d

Please sign in to comment.