PostgreSQL 7.5 CVS support
authorchriskl <chriskl>
Sun, 9 Nov 2003 08:29:33 +0000 (08:29 +0000)
committerchriskl <chriskl>
Sun, 9 Nov 2003 08:29:33 +0000 (08:29 +0000)
HISTORY
classes/Misc.php
classes/database/Postgres75.php [new file with mode: 0755]

diff --git a/HISTORY b/HISTORY
index cd28ddb11d2bc740483297ed19232785045aa78f..490dfe196aece93be9ba70ee9e0668d160ea77e1 100644 (file)
--- a/HISTORY
+++ b/HISTORY
@@ -5,6 +5,7 @@ Version 3.2-dev
 ---------------
 
 Features
+* PostgreSQL 7.5 CVS support
 * Option to dump table structure, data or structure and data
 * Results of table browse, table select, view browsing and report browsing
   can now ALL be sorted by column
index bcdcc8372681feabea2bc2856eed84c4f85cb564..a6c105cfb1cedd92ff68a7fd63a4137d4bc37385 100644 (file)
@@ -2,7 +2,7 @@
        /**
         * Class to hold various commonly used functions
         *
-        * $Id: Misc.php,v 1.46 2003/10/17 07:33:49 chriskl Exp $
+        * $Id: Misc.php,v 1.47 2003/11/09 08:29:33 chriskl Exp $
         */
         
        class Misc {
                                        $version = $params[1]; // eg. 7.3.2
                                        $description = "PostgreSQL {$params[1]}";
 
-                                       if (strpos($version, '7.4') === 0)
+                                       if (strpos($version, '7.5') === 0)
+                                               return 'Postgres75';
+                                       elseif (strpos($version, '7.4') === 0)
                                                return 'Postgres74';
                                        elseif (strpos($version, '7.3') === 0)
                                                return 'Postgres73';
diff --git a/classes/database/Postgres75.php b/classes/database/Postgres75.php
new file mode 100755 (executable)
index 0000000..d423a43
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+
+/**
+ * PostgreSQL 7.5 support
+ *
+ * $Id: Postgres75.php,v 1.1 2003/11/09 08:29:33 chriskl Exp $
+ */
+
+include_once('classes/database/Postgres74.php');
+
+class Postgres75 extends Postgres74 {
+
+       // Last oid assigned to a system object
+       var $_lastSystemOID = 17137;
+
+       /**
+        * Constructor
+        * @param $host The hostname to connect to
+        * @param $post The port number to connect to
+        * @param $database The database name to connect to
+        * @param $user The user to connect as
+        * @param $password The password to use
+        */
+       function Postgres75($host, $port, $database, $user, $password) {
+               $this->Postgres74($host, $port, $database, $user, $password);
+       }
+
+}