// Detect version and choose appropriate database driver
switch (substr($version,0,3)) {
- case '8.4': return 'Postgres'; break;
+ case '9.1': return 'Postgres'; break;
+ case '9.0': return 'Postgres90'; break;
+ case '8.4': return 'Postgres84'; break;
case '8.3': return 'Postgres83'; break;
case '8.2': return 'Postgres82'; break;
case '8.1': return 'Postgres81'; break;
}
/* All <7.4 versions are not supported */
- // if major version is 7 or less and wasn't catch in the
+ // if major version is 7 or less and wasn't cought in the
// switch/case block, we have an unsupported version.
if ((int)substr($version, 0, 1) < 8)
return null;
class Postgres extends ADODB_base {
- var $major_version = 9.0;
+ var $major_version = 9.1;
// Max object name length
var $_maxNameLen = 63;
// Store the current schema
}
function getHelpPages() {
- include_once('./help/PostgresDoc90.php');
+ include_once('./help/PostgresDoc91.php');
return $this->help_page;
}
--- /dev/null
+<?php
+
+/**
+ * PostgreSQL 9.0 support
+ *
+ * $Id: Postgres82.php,v 1.10 2007/12/28 16:21:25 ioguix Exp $
+ */
+
+include_once('./classes/database/Postgres.php');
+
+class Postgres90 extends Postgres {
+
+ var $major_version = 9.0;
+
+ /**
+ * Constructor
+ * @param $conn The database connection
+ */
+ function Postgres90($conn) {
+ $this->Postgres($conn);
+ }
+
+ // Help functions
+
+ function getHelpPages() {
+ include_once('./help/PostgresDoc90.php');
+ return $this->help_page;
+ }
+
+ // Capabilities
+
+}
+?>