diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-02-11 04:54:42 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-02-11 04:54:42 +0100 |
commit | 70529a739dd0a73fc72124720390313d8a8b0dca (patch) | |
tree | a6f21db8302f2da27f4cd661936c584bbaeb698c /system/database/drivers/oci8/oci8_driver.php | |
parent | 58626b35b0b272c5e37a7a22c3efb68145dab14a (diff) |
driver escape_table fixes
Diffstat (limited to 'system/database/drivers/oci8/oci8_driver.php')
-rw-r--r-- | system/database/drivers/oci8/oci8_driver.php | 4 |
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 33fe08725..8f63c25a5 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 (strpos($table, '.') !== FALSE)
+ if (stristr($table, '.'))
{
- $table = str_replace('.', '`.`', $table);
+ $table = preg_replace("/\./", "`.`", $table);
}
return $table;
|