* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres71.php,v 1.47 2003/12/10 16:03:30 chriskl Exp $
+ * $Id: Postgres71.php,v 1.48 2003/12/16 01:27:23 chriskl Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
else {
$sql = "SELECT
a.attname, t.typname as type, a.attlen, a.atttypmod, a.attnotnull,
- a.atthasdef, adef.adsrc, a.attstattarget, a.attstorage, t.typstorage
+ a.atthasdef, adef.adsrc, -1 AS attstattarget, a.attstorage, t.typstorage
FROM
pg_attribute a LEFT JOIN pg_attrdef adef
ON a.attrelid=adef.adrelid AND a.attnum=adef.adnum,