/**
* 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');
// 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)
elseif (strpos($version, '7.0') === 0)
return 'Postgres';
else
- return 'Postgres81';
+ return 'Postgres82';
}
/**
--- /dev/null
+<?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;
+ }
+
+}
+
+?>
--- /dev/null
+<?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');
+
+?>