* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres.php,v 1.58 2003/03/12 05:25:30 chriskl Exp $
+ * $Id: Postgres.php,v 1.59 2003/03/14 03:14:49 chriskl Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
// List of all legal privileges that can be applied to different types
// of objects.
var $privlist = array(
- 'table' => array('SELECT', 'INSERT', 'UPDATE', 'DELETE', 'RULE', 'REFERENCES', 'TRIGGER', 'ALL PRIVILEGES'),
- 'view' => array('SELECT', 'RULE', 'ALL PRIVILEGES'),
- 'sequence' => array('SELECT', 'UPDATE', 'ALL PRIVILEGES'),
- 'database' => array('CREATE', 'TEMPORARY', 'ALL PRIVILEGES'),
- 'function' => array('EXECUTE', 'ALL PRIVILEGES'),
- 'language' => array('USAGE', 'ALL PRIVILEGES'),
- 'schema' => array('CREATE', 'USAGE', 'ALL PRIVILEGES')
+ 'table' => array('SELECT', 'INSERT', 'UPDATE', 'DELETE', 'RULE', 'ALL'),
+ 'view' => array('SELECT', 'RULE', 'ALL'),
+ 'sequence' => array('SELECT', 'UPDATE', 'ALL')
);
// List of characters in acl lists and the privileges they
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres71.php,v 1.23 2003/03/10 02:15:15 chriskl Exp $
+ * $Id: Postgres71.php,v 1.24 2003/03/14 03:14:51 chriskl Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
var $_lastSystemOID = 18539;
var $_maxNameLen = 31;
+ // List of all legal privileges that can be applied to different types
+ // of objects.
+ var $privlist = array(
+ 'table' => array('SELECT', 'INSERT', 'UPDATE', 'DELETE', 'RULE', 'ALL'),
+ 'view' => array('SELECT', 'RULE', 'ALL'),
+ 'sequence' => array('SELECT', 'UPDATE', 'ALL')
+ );
+
function Postgres71($host, $port, $database, $user, $password) {
$this->Postgres($host, $port, $database, $user, $password);
}
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres72.php,v 1.26 2003/02/09 09:23:39 chriskl Exp $
+ * $Id: Postgres72.php,v 1.27 2003/03/14 03:14:52 chriskl Exp $
*/
var $langFields = array('lanname' => 'lanname');
var $privFields = array('privarr' => 'relacl');
- // @@ Set the maximum built-in ID. Should we bother querying for this?
+ // Set the maximum built-in ID.
var $_lastSystemOID = 16554;
+ // List of all legal privileges that can be applied to different types
+ // of objects.
+ var $privlist = array(
+ 'table' => array('SELECT', 'INSERT', 'UPDATE', 'DELETE', 'RULE', 'REFERENCES', 'TRIGGER', 'ALL PRIVILEGES'),
+ 'view' => array('SELECT', 'RULE', 'ALL PRIVILEGES'),
+ 'sequence' => array('SELECT', 'UPDATE', 'ALL PRIVILEGES')
+ );
+
// This gets it from the database.
// $rs = pg_exec($link, "SELECT oid FROM pg_database WHERE datname='template1'") or pg_die(pg_errormessage(), "", __FILE__, __LINE__);
// $builtin_max = pg_result($rs, 0, "oid");
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres73.php,v 1.23 2003/03/12 05:25:03 chriskl Exp $
+ * $Id: Postgres73.php,v 1.24 2003/03/14 03:14:53 chriskl Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
var $_schemaOIDs = array(11, 99);
var $_schemaNames = array('pg_catalog', 'pg_toast');
+ // List of all legal privileges that can be applied to different types
+ // of objects.
+ var $privlist = array(
+ 'table' => array('SELECT', 'INSERT', 'UPDATE', 'DELETE', 'RULE', 'REFERENCES', 'TRIGGER', 'ALL PRIVILEGES'),
+ 'view' => array('SELECT', 'RULE', 'ALL PRIVILEGES'),
+ 'sequence' => array('SELECT', 'UPDATE', 'ALL PRIVILEGES'),
+ 'database' => array('CREATE', 'TEMPORARY', 'ALL PRIVILEGES'),
+ 'function' => array('EXECUTE', 'ALL PRIVILEGES'),
+ 'language' => array('USAGE', 'ALL PRIVILEGES'),
+ 'schema' => array('CREATE', 'USAGE', 'ALL PRIVILEGES')
+ );
+
function Postgres73($host, $port, $database, $user, $password) {
$this->Postgres72($host, $port, $database, $user, $password);
}