diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2008-10-17 06:07:54 +0200 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2008-10-17 06:07:54 +0200 |
commit | 605a07a2ea479a8761588f7775b500a7e8d9e098 (patch) | |
tree | 9b49115a508ac4189398de9868780b38034022b5 /system/database/drivers/mysqli/mysqli_forge.php | |
parent | 59523592c58abc303a6eae1904c80fa6a428c3d3 (diff) |
Fixed a number of bug reports related to table/db names not being escaped or prefixed correctly.
Diffstat (limited to 'system/database/drivers/mysqli/mysqli_forge.php')
-rw-r--r-- | system/database/drivers/mysqli/mysqli_forge.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/mysqli/mysqli_forge.php b/system/database/drivers/mysqli/mysqli_forge.php index ce6ab45b2..c7889bf48 100644 --- a/system/database/drivers/mysqli/mysqli_forge.php +++ b/system/database/drivers/mysqli/mysqli_forge.php @@ -147,7 +147,7 @@ class CI_DB_mysqli_forge extends CI_DB_forge { $sql .= 'IF NOT EXISTS ';
}
- $sql .= $this->db->_escape_table($table)." (";
+ $sql .= $this->db->_escape_identifiers($table)." (";
$sql .= $this->_process_fields($fields);
@@ -192,7 +192,7 @@ class CI_DB_mysqli_forge extends CI_DB_forge { */
function _drop_table($table)
{
- return "DROP TABLE IF EXISTS ".$this->db->_escape_table($table);
+ return "DROP TABLE IF EXISTS ".$this->db->_escape_identifiers($table);
}
// --------------------------------------------------------------------
|