summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/pdo
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2011-08-24 14:29:05 +0200
committerTimothy Warren <tim@timshomepage.net>2011-08-24 14:29:05 +0200
commit36fb8de7bf385036f3145dd1fbd9537f6a01ac36 (patch)
tree6ead80b2bb8c5ab86a084bf88760d57a130243db /system/database/drivers/pdo
parent0261596e96446ee5435407abb478204b0c4f79cf (diff)
Updated version function to use PDO constant
Diffstat (limited to 'system/database/drivers/pdo')
-rw-r--r--system/database/drivers/pdo/pdo_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/pdo/pdo_driver.php b/system/database/drivers/pdo/pdo_driver.php
index d1bec4489..b0a16d994 100644
--- a/system/database/drivers/pdo/pdo_driver.php
+++ b/system/database/drivers/pdo/pdo_driver.php
@@ -147,7 +147,7 @@ class CI_DB_pdo_driver extends CI_DB {
*/
function _version()
{
- return "SELECT version() AS ver";
+ return $this->conn_id->getAttribute(PDO::ATTR_CLIENT_VERSION);
}
// --------------------------------------------------------------------