diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-08-11 02:17:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-08-11 02:17:39 +0000 |
commit | 3f83c075a4a52887dc7cc7478356c97bea958f71 (patch) | |
tree | bb8919ebb78c1d8412617791d7e958e620ac952c /includes/database/pgsql | |
parent | b45bda8d7b5194c8095ed3266146ce20fc5d560a (diff) | |
download | brdo-3f83c075a4a52887dc7cc7478356c97bea958f71.tar.gz brdo-3f83c075a4a52887dc7cc7478356c97bea958f71.tar.bz2 |
- Patch #878198 by pwolanin: add back a method to the DB driver interface that reports the server version.
Diffstat (limited to 'includes/database/pgsql')
-rw-r--r-- | includes/database/pgsql/database.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/database/pgsql/database.inc b/includes/database/pgsql/database.inc index 22bb8b565..ec3acbb22 100644 --- a/includes/database/pgsql/database.inc +++ b/includes/database/pgsql/database.inc @@ -126,6 +126,10 @@ class DatabaseConnection_pgsql extends DatabaseConnection { return 'pgsql'; } + public function version() { + return $this->query('SHOW SERVER_VERSION')->fetchField(); + } + public function databaseType() { return 'pgsql'; } |