diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-02-11 00:47:13 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-02-11 00:47:13 +0100 |
commit | 41d4b592b9b0962e444938fcf106cccbbd8fda59 (patch) | |
tree | fcdfb11b1abf4de2a8a0699c5afebbe919c2ccdc /system/database/drivers/mysqli/mysqli_driver.php | |
parent | 7555ade507982af16ed763e2e560a60892408bd2 (diff) |
escape_table made consistent with mysql driver across all drivers
Diffstat (limited to 'system/database/drivers/mysqli/mysqli_driver.php')
-rw-r--r-- | system/database/drivers/mysqli/mysqli_driver.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/mysqli/mysqli_driver.php b/system/database/drivers/mysqli/mysqli_driver.php index 31c27117c..61848a674 100644 --- a/system/database/drivers/mysqli/mysqli_driver.php +++ b/system/database/drivers/mysqli/mysqli_driver.php @@ -410,9 +410,9 @@ class CI_DB_mysqli_driver extends CI_DB { */
function _escape_table($table)
{
- if (stristr($table, '.'))
+ if (strpos($table, '.') !== FALSE)
{
- $table = preg_replace("/\./", "`.`", $table);
+ $table = str_replace('.', '`.`', $table);
}
return $table;
|