summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/interbase
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-02-17 01:00:10 +0100
committerTimothy Warren <tim@timshomepage.net>2012-02-17 01:00:10 +0100
commit3c4281f09dce0a97ab700d79e26308fdab350b73 (patch)
tree0a350523900923a1bc84de5330dae70c7f4a79a2 /system/database/drivers/interbase
parent9fcb7b64e519e17b3839b9598c598c431c4ed04a (diff)
Simplified hostname connection logic
Diffstat (limited to 'system/database/drivers/interbase')
-rw-r--r--system/database/drivers/interbase/interbase_driver.php15
1 files changed, 2 insertions, 13 deletions
diff --git a/system/database/drivers/interbase/interbase_driver.php b/system/database/drivers/interbase/interbase_driver.php
index a6f192ad1..20663d8bb 100644
--- a/system/database/drivers/interbase/interbase_driver.php
+++ b/system/database/drivers/interbase/interbase_driver.php
@@ -61,17 +61,6 @@ class CI_DB_interbase_driver extends CI_DB {
// Keeps track of the resource for the current transaction
protected $trans;
-
- /**
- * Constructor for some overall setup
- */
- public function __construct()
- {
- if( ! empty($this->hostname) && $this->hostname !== "localhost")
- {
- $this->database = $this->hostname.':'.$this->database;
- }
- }
/**
* Non-persistent database connection
@@ -80,7 +69,7 @@ class CI_DB_interbase_driver extends CI_DB {
*/
public function db_connect()
{
- return @ibase_connect($this->database, $this->username, $this->password, $this->char_set);
+ return @ibase_connect($this->hostname.':'.$this->database, $this->username, $this->password, $this->char_set);
}
// --------------------------------------------------------------------
@@ -92,7 +81,7 @@ class CI_DB_interbase_driver extends CI_DB {
*/
public function db_pconnect()
{
- return @ibase_pconnect($this->database, $this->username, $this->password, $this->char_set);
+ return @ibase_pconnect($this->hostname.':'.$this->database, $this->username, $this->password, $this->char_set);
}
// --------------------------------------------------------------------