diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-02-16 10:19:10 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-02-16 10:19:10 +0100 |
commit | 7afc7198a4674c2d306411f91b5d188dccdf1def (patch) | |
tree | d157235e15d0721aa0f59e2fa2f22cdfac9602c2 /system/database/drivers/mysql/mysql_forge.php | |
parent | e35d6943d513b4f016b763eebe8b97a9f1c902e3 (diff) | |
parent | c51816da79d4b7a1c517142d7380234a9d8bae77 (diff) |
Merge pull request #1040 from narfbg/develop-issue-1039
Fix issue #1039
Diffstat (limited to 'system/database/drivers/mysql/mysql_forge.php')
-rw-r--r-- | system/database/drivers/mysql/mysql_forge.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/mysql/mysql_forge.php b/system/database/drivers/mysql/mysql_forge.php index d3107134e..0f251b086 100644 --- a/system/database/drivers/mysql/mysql_forge.php +++ b/system/database/drivers/mysql/mysql_forge.php @@ -147,7 +147,7 @@ class CI_DB_mysql_forge extends CI_DB_forge { $sql .= 'IF NOT EXISTS '; } - $sql .= $this->db->_escape_identifiers($table).' ('.$this->_process_fields($fields); + $sql .= $this->db->protect_identifiers($table).' ('.$this->_process_fields($fields); if (count($primary_keys) > 0) { @@ -187,7 +187,7 @@ class CI_DB_mysql_forge extends CI_DB_forge { */ public function _drop_table($table) { - return 'DROP TABLE IF EXISTS '.$this->db->_escape_identifiers($table); + return 'DROP TABLE IF EXISTS '.$this->db->protect_identifiers($table); } // -------------------------------------------------------------------- |