diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-03 01:29:41 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-03 01:29:41 +0000 |
commit | fc2839047ee4166682a39329ae8a54bfcd6bc736 (patch) | |
tree | db33920f0a23fd81ec22835f02e57b1b3dbf1a9b /includes/database/database.inc | |
parent | 8ec40cc27a72e3dec43d80432a3250af7c03aed3 (diff) | |
download | brdo-fc2839047ee4166682a39329ae8a54bfcd6bc736.tar.gz brdo-fc2839047ee4166682a39329ae8a54bfcd6bc736.tar.bz2 |
- Patch #878198 by pwolanin, Damien Tournoud: add back a method to the DB driver interface that reports the server version.
Diffstat (limited to 'includes/database/database.inc')
-rw-r--r-- | includes/database/database.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/database/database.inc b/includes/database/database.inc index 4131f91fd..9ca77ea50 100644 --- a/includes/database/database.inc +++ b/includes/database/database.inc @@ -1069,7 +1069,9 @@ abstract class DatabaseConnection extends PDO { /** * Returns the version of the database server. */ - abstract public function version(); + public function version() { + return $this->getAttribute(PDO::ATTR_SERVER_VERSION); + } /** * Determines if this driver supports transactions. |