diff options
author | Karl O. Pinc | 2013-05-08 04:22:52 +0000 |
---|---|---|
committer | Robert Treat | 2013-05-18 22:50:15 +0000 |
commit | 512787598360047268bd8d9bc33871b8efd04ece (patch) | |
tree | 5c29f8be225e3f2831b3d29f705061d4feea5974 | |
parent | 6c68046443757b8e19b7f383f59f10a8fa8dbe44 (diff) |
Explicit support for PG 9.3.
-rwxr-xr-x | classes/database/Connection.php | 3 | ||||
-rwxr-xr-x | classes/database/Postgres.php | 4 | ||||
-rwxr-xr-x | classes/database/Postgres91.php | 4 | ||||
-rw-r--r-- | classes/database/Postgres92.php | 30 |
4 files changed, 36 insertions, 5 deletions
diff --git a/classes/database/Connection.php b/classes/database/Connection.php index 5d3ce4f0..a8e81b54 100755 --- a/classes/database/Connection.php +++ b/classes/database/Connection.php @@ -76,7 +76,8 @@ class Connection { // Detect version and choose appropriate database driver switch (substr($version,0,3)) { - case '9.2': return 'Postgres'; break; + case '9.3': return 'Postgres'; break; + case '9.2': return 'Postgres92'; break; case '9.1': return 'Postgres91'; break; case '9.0': return 'Postgres90'; break; case '8.4': return 'Postgres84'; break; diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php index 5dc2479d..3d55f9db 100755 --- a/classes/database/Postgres.php +++ b/classes/database/Postgres.php @@ -11,7 +11,7 @@ include_once('./classes/database/ADODB_base.php'); class Postgres extends ADODB_base { - var $major_version = 9.2; + var $major_version = 9.3; // Max object name length var $_maxNameLen = 63; // Store the current schema @@ -417,7 +417,7 @@ class Postgres extends ADODB_base { } function getHelpPages() { - include_once('./help/PostgresDoc92.php'); + include_once('./help/PostgresDoc93.php'); return $this->help_page; } diff --git a/classes/database/Postgres91.php b/classes/database/Postgres91.php index f238925a..34e08982 100755 --- a/classes/database/Postgres91.php +++ b/classes/database/Postgres91.php @@ -6,9 +6,9 @@ * $Id: Postgres82.php,v 1.10 2007/12/28 16:21:25 ioguix Exp $ */ -include_once('./classes/database/Postgres.php'); +include_once('./classes/database/Postgres92.php'); -class Postgres91 extends Postgres { +class Postgres91 extends Postgres92 { var $major_version = 9.1; diff --git a/classes/database/Postgres92.php b/classes/database/Postgres92.php new file mode 100644 index 00000000..b67bfe07 --- /dev/null +++ b/classes/database/Postgres92.php @@ -0,0 +1,30 @@ +<?php + +/** + * PostgreSQL 9.2 support + * + */ + +include_once('./classes/database/Postgres.php'); + +class Postgres92 extends Postgres { + + var $major_version = 9.2; + + /** + * Constructor + * @param $conn The database connection + */ + function Postgres92($conn) { + $this->Postgres($conn); + } + + // Help functions + + function getHelpPages() { + include_once('./help/PostgresDoc92.php'); + return $this->help_page; + } + +} +?> |