summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-04-09 15:29:01 +0200
committerAndrey Andreev <narf@bofh.bg>2012-04-09 15:29:01 +0200
commit918be7963f6fa3461d612ea7ca4c9774c12f9da5 (patch)
tree499cd8b29f61866027efb403775f96dbded2c9bc
parentb457a4001ce2380e97f36b0a983b477c3e31de69 (diff)
Add a parameter to SQLite3 and PDO _close() due to CI_DB_driver being abstract
-rw-r--r--system/database/drivers/pdo/pdo_driver.php3
-rw-r--r--system/database/drivers/sqlite3/sqlite3_driver.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/system/database/drivers/pdo/pdo_driver.php b/system/database/drivers/pdo/pdo_driver.php
index 45f8cc1fb..60151b900 100644
--- a/system/database/drivers/pdo/pdo_driver.php
+++ b/system/database/drivers/pdo/pdo_driver.php
@@ -672,9 +672,10 @@ class CI_DB_pdo_driver extends CI_DB {
/**
* Close DB Connection
*
+ * @param object
* @return void
*/
- protected function _close()
+ protected function _close($conn_id)
{
$this->conn_id = NULL;
}
diff --git a/system/database/drivers/sqlite3/sqlite3_driver.php b/system/database/drivers/sqlite3/sqlite3_driver.php
index 49cfbe7ec..fb45bee9c 100644
--- a/system/database/drivers/sqlite3/sqlite3_driver.php
+++ b/system/database/drivers/sqlite3/sqlite3_driver.php
@@ -417,9 +417,10 @@ class CI_DB_sqlite3_driver extends CI_DB {
/**
* Close DB Connection
*
+ * @param object (ignored)
* @return void
*/
- protected function _close()
+ protected function _close($conn_id)
{
$this->conn_id->close();
}