summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-06 19:43:40 +0100
committerAndrey Andreev <narf@bofh.bg>2012-03-06 19:43:40 +0100
commit738f53448fecd1a27c7f89965fbfc47b3bafdb9b (patch)
treef7ece2d5bd8755182debd8a9033b1eb1f6b70147
parent4c20260e72a4f2aae21417121a864b34bab51496 (diff)
Move dsn property from the PDO to CI_DB_driver so other DB drivers can use it without declaring it
-rw-r--r--system/database/DB_driver.php1
-rw-r--r--system/database/drivers/pdo/pdo_driver.php3
2 files changed, 2 insertions, 2 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index af496aa7f..025441f90 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -40,6 +40,7 @@
*/
class CI_DB_driver {
+ public $dsn;
public $username;
public $password;
public $hostname;
diff --git a/system/database/drivers/pdo/pdo_driver.php b/system/database/drivers/pdo/pdo_driver.php
index eadb78ffe..c8732ac3c 100644
--- a/system/database/drivers/pdo/pdo_driver.php
+++ b/system/database/drivers/pdo/pdo_driver.php
@@ -59,8 +59,7 @@ class CI_DB_pdo_driver extends CI_DB {
var $_count_string = "SELECT COUNT(*) AS ";
var $_random_keyword;
- // need to track the pdo DSN, driver and options
- var $dsn;
+ // need to track the pdo driver and options
var $pdodriver;
var $options = array();