PostgreSQL 8.2dev support
authorchriskl <chriskl>
Tue, 8 Nov 2005 02:24:31 +0000 (02:24 +0000)
committerchriskl <chriskl>
Tue, 8 Nov 2005 02:24:31 +0000 (02:24 +0000)
classes/database/Connection.php
classes/database/Postgres82.php [new file with mode: 0644]
help/PostgresDoc82.php [new file with mode: 0644]

index 8622505a3f38dbe155dfb601f28b0afe9c1d7124..00c8aca89da75ab1a8cb6d7cbfe5267b8a7a772a 100755 (executable)
@@ -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 (file)
index 0000000..ff86c64
--- /dev/null
@@ -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 (file)
index 0000000..44ef6f6
--- /dev/null
@@ -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');
+
+?>