From 512787598360047268bd8d9bc33871b8efd04ece Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Tue, 7 May 2013 23:22:52 -0500 Subject: [PATCH] Explicit support for PG 9.3. --- classes/database/Connection.php | 3 ++- classes/database/Postgres.php | 4 ++-- classes/database/Postgres91.php | 4 ++-- classes/database/Postgres92.php | 30 ++++++++++++++++++++++++++++++ 4 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 classes/database/Postgres92.php 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 @@ +Postgres($conn); + } + + // Help functions + + function getHelpPages() { + include_once('./help/PostgresDoc92.php'); + return $this->help_page; + } + +} +?> -- 2.39.5