summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Treat2012-05-29 03:57:24 +0000
committerRobert Treat2012-05-29 03:57:24 +0000
commit20df22d8220b803e73964de491e46da019882bc3 (patch)
treef8bbcbf0d70089ba14dd616074bbbf4e7b8b4f1b
parent46cfafa86509f2fd4284f45c2a5cf4707a3ce0f6 (diff)
stub support for postgres92, clean up some other version bits.
passes tests for 90,91,92(ish)
-rwxr-xr-xclasses/database/Connection.php3
-rwxr-xr-xclasses/database/Postgres.php4
-rwxr-xr-xclasses/database/Postgres84.php4
-rwxr-xr-xclasses/database/Postgres90.php4
-rwxr-xr-xclasses/database/Postgres91.php33
5 files changed, 41 insertions, 7 deletions
diff --git a/classes/database/Connection.php b/classes/database/Connection.php
index 6733e535..ebf3991d 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.1': return 'Postgres'; break;
+ case '9.2': return 'Postgres'; break;
+ case '9.1': return 'Postgres91'; break;
case '9.0': return 'Postgres90'; break;
case '8.4': return 'Postgres84'; break;
case '8.3': return 'Postgres83'; break;
diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php
index bd7e3f29..76b9109f 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.1;
+ var $major_version = 9.2;
// Max object name length
var $_maxNameLen = 63;
// Store the current schema
@@ -415,7 +415,7 @@ class Postgres extends ADODB_base {
}
function getHelpPages() {
- include_once('./help/PostgresDoc91.php');
+ include_once('./help/PostgresDoc92.php');
return $this->help_page;
}
diff --git a/classes/database/Postgres84.php b/classes/database/Postgres84.php
index 702b1631..7b255288 100755
--- a/classes/database/Postgres84.php
+++ b/classes/database/Postgres84.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/Postgres90.php');
-class Postgres84 extends Postgres {
+class Postgres84 extends Postgres90 {
var $major_version = 8.4;
diff --git a/classes/database/Postgres90.php b/classes/database/Postgres90.php
index 3f48d30a..9f7b3a09 100755
--- a/classes/database/Postgres90.php
+++ b/classes/database/Postgres90.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/Postgres91.php');
-class Postgres90 extends Postgres {
+class Postgres90 extends Postgres91 {
var $major_version = 9.0;
diff --git a/classes/database/Postgres91.php b/classes/database/Postgres91.php
new file mode 100755
index 00000000..acda2053
--- /dev/null
+++ b/classes/database/Postgres91.php
@@ -0,0 +1,33 @@
+<?php
+
+/**
+ * PostgreSQL 9.1 support
+ *
+ * $Id: Postgres82.php,v 1.10 2007/12/28 16:21:25 ioguix Exp $
+ */
+
+include_once('./classes/database/Postgres.php');
+
+class Postgres91 extends Postgres {
+
+ var $major_version = 9.1;
+
+ /**
+ * Constructor
+ * @param $conn The database connection
+ */
+ function Postgres91($conn) {
+ $this->Postgres($conn);
+ }
+
+ // Help functions
+
+ function getHelpPages() {
+ include_once('./help/PostgresDoc91.php');
+ return $this->help_page;
+ }
+
+ // Capabilities
+
+}
+?>