class Postgres extends ADODB_base {
- var $major_version = 8.4;
+ var $major_version = 8.5;
// Max object name length
var $_maxNameLen = 63;
// Store the current schema
}
function getHelpPages() {
- include_once('./help/PostgresDoc84.php');
+ include_once('./help/PostgresDoc85.php');
return $this->help_page;
}
--- /dev/null
+<?php
+
+/**
+ * PostgreSQL 8.4 support
+ *
+ * $Id: Postgres82.php,v 1.10 2007/12/28 16:21:25 ioguix Exp $
+ */
+
+include_once('./classes/database/Postgres.php');
+
+class Postgres84 extends Postgres {
+
+ var $major_version = 8.4;
+
+ // List of all legal privileges that can be applied to different types
+ // of objects.
+ var $privlist = array(
+ 'table' => array('SELECT', 'INSERT', 'UPDATE', 'DELETE', 'REFERENCES', 'TRIGGER', 'ALL PRIVILEGES'),
+ 'view' => array('SELECT', 'INSERT', 'UPDATE', 'DELETE', 'REFERENCES', 'TRIGGER', 'ALL PRIVILEGES'),
+ 'sequence' => array('SELECT', 'UPDATE', 'ALL PRIVILEGES'),
+ 'database' => array('CREATE', 'TEMPORARY', 'CONNECT', 'ALL PRIVILEGES'),
+ 'function' => array('EXECUTE', 'ALL PRIVILEGES'),
+ 'language' => array('USAGE', 'ALL PRIVILEGES'),
+ 'schema' => array('CREATE', 'USAGE', 'ALL PRIVILEGES'),
+ 'tablespace' => array('CREATE', 'ALL PRIVILEGES'),
+ 'column' => array('SELECT', 'INSERT', 'UPDATE', 'REFERENCES','ALL PRIVILEGES')
+ );
+
+ /**
+ * Constructor
+ * @param $conn The database connection
+ */
+ function Postgres84($conn) {
+ $this->Postgres($conn);
+ }
+
+ // Help functions
+
+ function getHelpPages() {
+ include_once('./help/PostgresDoc84.php');
+ return $this->help_page;
+ }
+
+ // Databse functions
+
+
+ // Capabilities
+
+}
+
+?>