summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchriskl2005-11-08 02:24:31 +0000
committerchriskl2005-11-08 02:24:31 +0000
commit2f1a24de7fb8c2cf2134d1d80d14db70659dca79 (patch)
tree213446611769035cfcc14aba1d7e11549895de9b
parent84f7a9f693f4aaddc297a3268cf7cfb3f2ac2089 (diff)
PostgreSQL 8.2dev support
-rwxr-xr-xclasses/database/Connection.php6
-rw-r--r--classes/database/Postgres82.php35
-rw-r--r--help/PostgresDoc82.php13
3 files changed, 52 insertions, 2 deletions
diff --git a/classes/database/Connection.php b/classes/database/Connection.php
index 8622505a..00c8aca8 100755
--- a/classes/database/Connection.php
+++ b/classes/database/Connection.php
@@ -3,7 +3,7 @@
/**
* Class to represent a database connection
*
- * $Id: Connection.php,v 1.11 2005/06/16 14:40:11 chriskl Exp $
+ * $Id: Connection.php,v 1.12 2005/11/08 02:24:31 chriskl Exp $
*/
include_once('./classes/database/ADODB_base.php');
@@ -77,6 +77,8 @@ class Connection {
// it won't work with those versions.
if ((int)substr($version, 0, 1) < 7)
return null;
+ elseif (strpos($version, '8.1') === 0)
+ return 'Postgres81';
elseif (strpos($version, '8.0') === 0 || strpos($version, '7.5') === 0)
return 'Postgres80';
elseif (strpos($version, '7.4') === 0)
@@ -90,7 +92,7 @@ class Connection {
elseif (strpos($version, '7.0') === 0)
return 'Postgres';
else
- return 'Postgres81';
+ return 'Postgres82';
}
/**
diff --git a/classes/database/Postgres82.php b/classes/database/Postgres82.php
new file mode 100644
index 00000000..ff86c640
--- /dev/null
+++ b/classes/database/Postgres82.php
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * PostgreSQL 8.2 support
+ *
+ * $Id: Postgres82.php,v 1.1 2005/11/08 02:24:31 chriskl Exp $
+ */
+
+include_once('./classes/database/Postgres81.php');
+
+class Postgres82 extends Postgres81 {
+
+ var $major_version = 8.2;
+
+ // Last oid assigned to a system object
+ var $_lastSystemOID = 17231;
+
+ /**
+ * Constructor
+ * @param $conn The database connection
+ */
+ function Postgres82($conn) {
+ $this->Postgres81($conn);
+ }
+
+ // Help functions
+
+ function getHelpPages() {
+ include_once('./help/PostgresDoc82.php');
+ return $this->help_page;
+ }
+
+}
+
+?>
diff --git a/help/PostgresDoc82.php b/help/PostgresDoc82.php
new file mode 100644
index 00000000..44ef6f61
--- /dev/null
+++ b/help/PostgresDoc82.php
@@ -0,0 +1,13 @@
+<?php
+
+/**
+ * Help links for PostgreSQL 8.2 documentation
+ *
+ * $Id: PostgresDoc82.php,v 1.1 2005/11/08 02:24:31 chriskl Exp $
+ */
+
+include('./help/PostgresDoc81.php');
+
+$this->help_base = sprintf($GLOBALS['conf']['help_base'], '8.2');
+
+?>