Fixed old-style pdo connection string
diff --git a/system/database/drivers/pdo/pdo_driver.php b/system/database/drivers/pdo/pdo_driver.php
index fc378da..5e5c01e 100644
--- a/system/database/drivers/pdo/pdo_driver.php
+++ b/system/database/drivers/pdo/pdo_driver.php
@@ -117,7 +117,11 @@
// $db['hostname'] = 'pdodriver:host(/Server(/DSN))=hostname(/DSN);';
// We need to get the prefix (pdodriver used by PDO).
$this->dsn = $this->hostname;
- $this->pdodriver = substr($this->hostname, 0, strpos($this->hostname, ':'));
+ $split_dsn = explode(":", $this->hostname);
+ $this->pdodriver = $split_dsn[0];
+
+ // End this part of the dsn with a semicolon
+ $this->dsn .= rtrim(';', $this->dsn) . ';';
}
else
{