* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres73.php,v 1.161 2007/01/10 02:01:17 soranzo Exp $
+ * $Id: Postgres73.php,v 1.160.2.1 2007/04/18 15:50:21 mr-russ Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
$rs = $this->selectSet($sql);
if ($rs->recordCount() != 1) return -99;
else {
- $rs->fields['relhasoids'] = $this->phpBool($rs->fields['relhasoids']);
- return $rs->fields['relhasoids'];
+ $rs->f['relhasoids'] = $this->phpBool($rs->f['relhasoids']);
+ return $rs->f['relhasoids'];
}
}
else {
$temp = array();
while (!$rs->EOF) {
- $temp[$rs->fields['attnum']] = $rs->fields['attname'];
+ $temp[$rs->f['attnum']] = $rs->f['attname'];
$rs->moveNext();
}
return $temp;
}
// Otherwise find the names of the keys
else {
- $attnames = $this->getAttributeNames($oldtable, explode(' ', $rs->fields['indkey']));
+ $attnames = $this->getAttributeNames($oldtable, explode(' ', $rs->f['indkey']));
if (!is_array($attnames)) {
$this->rollbackTransaction();
return -1;
// Get the minimum value of the sequence
$seq = $this->getSequence($sequence);
if ($seq->recordCount() != 1) return -1;
- $minvalue = $seq->fields['min_value'];
+ $minvalue = $seq->f['min_value'];
/* This double-cleaning is deliberate */
$this->fieldClean($sequence);
*/
function getTypes($all = false, $tabletypes = false, $domains = false) {
if ($all)
- $where = 'pg_catalog.pg_type_is_visible(t.oid)';
+ $where = '1 = 1';
else
$where = "n.nspname = '{$this->_schema}'";
// Never show system table types