summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/interbase
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-02-15 05:40:40 +0100
committerTimothy Warren <tim@timshomepage.net>2012-02-15 05:40:40 +0100
commitd19e47a3152c0a3e6a9aa13261b4c843c946523b (patch)
tree57a1f2b94fbdd3c7153933b1f74705b9776a2c84 /system/database/drivers/interbase
parent7221f9455b3ffe89474d1728583b656c176b5ba4 (diff)
Removed string case manipulation functions
Diffstat (limited to 'system/database/drivers/interbase')
-rw-r--r--system/database/drivers/interbase/interbase_driver.php18
1 files changed, 7 insertions, 11 deletions
diff --git a/system/database/drivers/interbase/interbase_driver.php b/system/database/drivers/interbase/interbase_driver.php
index 525294db4..6f889d91e 100644
--- a/system/database/drivers/interbase/interbase_driver.php
+++ b/system/database/drivers/interbase/interbase_driver.php
@@ -74,11 +74,11 @@ class CI_DB_interbase_driver extends CI_DB {
{
if ( ! $conn_id = @ibase_connect($this->database, $this->username, $this->password, $this->char_set))
{
- log_message('error', $error);
+ log_message('error', $this->_error_message());
if ($this->db_debug)
{
- $this->display_error($error, '', TRUE);
+ $this->display_error($this->_error_message(), '', TRUE);
}
return FALSE;
@@ -99,11 +99,11 @@ class CI_DB_interbase_driver extends CI_DB {
{
if ( ! $conn_id = @ibase_pconnect($this->database, $this->username, $this->password, $this->char_set))
{
- log_message('error', $error);
+ log_message('error', $this->_error_message());
if ($this->db_debug)
{
- $this->display_error($error, '', TRUE);
+ $this->display_error($this->_error_message(), '', TRUE);
}
return FALSE;
@@ -496,7 +496,7 @@ SQL;
}
// remove duplicates if the user already included the escape
- return strtoupper(preg_replace('/['.$this->_escape_char.']+/', $this->_escape_char, $str));
+ return preg_replace('/['.$this->_escape_char.']+/', $this->_escape_char, $str);
}
// --------------------------------------------------------------------
@@ -518,7 +518,7 @@ SQL;
$tables = array($tables);
}
- return strtolower(implode(', ', $tables));
+ return implode(', ', $tables);
}
// --------------------------------------------------------------------
@@ -536,7 +536,7 @@ SQL;
*/
public function _insert($table, $keys, $values)
{
- return "INSERT INTO ".strtolower($table)." (".strtoupper(implode(', ', $keys)).") VALUES (".implode(', ', $values).")";
+ return "INSERT INTO {$table} (".implode(', ', $keys).") VALUES (".implode(', ', $values).")";
}
// --------------------------------------------------------------------
@@ -556,8 +556,6 @@ SQL;
*/
public function _update($table, $values, $where, $orderby = array(), $limit = FALSE)
{
- $table = strtolower($table);
-
foreach ($values as $key => $val)
{
$valstr[] = $key." = ".$val;
@@ -610,8 +608,6 @@ SQL;
*/
public function _delete($table, $where = array(), $like = array(), $limit = FALSE)
{
- $table = strtolower($table);
-
$conditions = '';
if (count($where) > 0 OR count($like) > 0)