summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-07-02 13:40:49 +0200
committerAndrey Andreev <narf@bofh.bg>2012-07-02 13:40:49 +0200
commitf00b9f02425afc902d79209c108ae74ab73342c9 (patch)
treef056b58a2bd38c018a59c6d738e92b31c0821f61 /system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php
parentbcd0b3aad91e2faa18e6139bdee99c717759cafb (diff)
Fix pdo_dblib and pdo_sqlsrv db_connect() and suppress warning messages for subdrivers that don't support certain option attributes
Diffstat (limited to 'system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php')
-rw-r--r--system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php b/system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php
index fe9139af0..7060c9eb9 100644
--- a/system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php
+++ b/system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php
@@ -92,11 +92,11 @@ class CI_DB_pdo_dblib_driver extends CI_DB_pdo_driver {
*/
public function db_connect($persistent = FALSE)
{
- $pdo_obj = parent::db_connect($persistent);
+ $this->conn_id = parent::db_connect($persistent);
- if ( ! is_object($pdo_obj))
+ if ( ! is_object($this->conn_id))
{
- return $pdo_obj;
+ return $this->conn_id;
}
// Determine how identifiers are escaped
@@ -105,7 +105,7 @@ class CI_DB_pdo_dblib_driver extends CI_DB_pdo_driver {
$this->_quoted_identifier = empty($query) ? FALSE : (bool) $query['qi'];
$this->_escape_char = ($this->_quoted_identifier) ? '"' : array('[', ']');
- return $pdo_obj;
+ return $this->conn_id;
}
// --------------------------------------------------------------------
@@ -262,4 +262,4 @@ class CI_DB_pdo_dblib_driver extends CI_DB_pdo_driver {
}
/* End of file pdo_dblib_driver.php */
-/* Location: ./system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php */ \ No newline at end of file
+/* Location: ./system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php */