fix annoying bug in alter column reported by a user
authorchriskl <chriskl>
Tue, 16 Dec 2003 01:27:23 +0000 (01:27 +0000)
committerchriskl <chriskl>
Tue, 16 Dec 2003 01:27:23 +0000 (01:27 +0000)
classes/database/Postgres71.php

index f176e2933c97c59c4ce087d08d0f1b7d26f22a04..16dd9d88ee257e67193634e8eaef20acfc7ceb3c 100644 (file)
@@ -4,7 +4,7 @@
  * 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???
@@ -143,7 +143,7 @@ class Postgres71 extends Postgres {
                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,