summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/oci8
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-02-11 00:47:13 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-02-11 00:47:13 +0100
commit41d4b592b9b0962e444938fcf106cccbbd8fda59 (patch)
treefcdfb11b1abf4de2a8a0699c5afebbe919c2ccdc /system/database/drivers/oci8
parent7555ade507982af16ed763e2e560a60892408bd2 (diff)
escape_table made consistent with mysql driver across all drivers
Diffstat (limited to 'system/database/drivers/oci8')
-rw-r--r--system/database/drivers/oci8/oci8_driver.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/oci8/oci8_driver.php b/system/database/drivers/oci8/oci8_driver.php
index 8f63c25a5..33fe08725 100644
--- a/system/database/drivers/oci8/oci8_driver.php
+++ b/system/database/drivers/oci8/oci8_driver.php
@@ -521,9 +521,9 @@ class CI_DB_oci8_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;