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/odbc | |
parent | 7555ade507982af16ed763e2e560a60892408bd2 (diff) |
escape_table made consistent with mysql driver across all drivers
Diffstat (limited to 'system/database/drivers/odbc')
-rw-r--r-- | system/database/drivers/odbc/odbc_driver.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/odbc/odbc_driver.php b/system/database/drivers/odbc/odbc_driver.php index dd10fbdd3..c949a4670 100644 --- a/system/database/drivers/odbc/odbc_driver.php +++ b/system/database/drivers/odbc/odbc_driver.php @@ -386,9 +386,9 @@ class CI_DB_odbc_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;
|