* A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres.php,v 1.214 2004/05/26 13:39:43 chriskl Exp $
+ * $Id: Postgres.php,v 1.215 2004/05/26 13:54:42 chriskl Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
                                        pg_class c,
                                        pg_type t
                                WHERE
-                                       c.relname = '{$table}' AND a.attname='{$field}' AND a.attrelid = c.oid AND a.atttypid = t.oid
-                               ORDER BY a.attnum";
+                                       c.relname = '{$table}' AND a.attname='{$field}' AND a.attrelid = c.oid AND a.atttypid = t.oid";
                }
                
                return $this->selectSet($sql);
 
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres71.php,v 1.57 2004/05/14 07:56:38 chriskl Exp $
+ * $Id: Postgres71.php,v 1.58 2004/05/26 13:54:42 chriskl Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
                }
                else {
                        $sql = "SELECT
-                                       a.attname, t.typname as type, t.typname as base_type
+                                       a.attname, t.typname as type, t.typname as base_type,
                                        a.attlen, a.atttypmod, a.attnotnull, 
                                        a.atthasdef, adef.adsrc, -1 AS attstattarget, a.attstorage, t.typstorage, 
                                         (SELECT description FROM pg_description d WHERE d.objoid = a.oid) as comment
                                        pg_class c,
                                        pg_type t
                                WHERE
-                                       c.relname = '{$table}' AND a.attname='{$field}' AND a.attrelid = c.oid AND a.atttypid = t.oid
-                               ORDER BY a.attnum";
+                                       c.relname = '{$table}' AND a.attname='{$field}' AND a.attrelid = c.oid AND a.atttypid = t.oid";
                }
                
                return $this->selectSet($sql);
 
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres72.php,v 1.66 2004/05/23 04:10:20 chriskl Exp $
+ * $Id: Postgres72.php,v 1.67 2004/05/26 13:54:43 chriskl Exp $
  */
 
 
                                         LEFT JOIN pg_description d ON (a.attrelid = d.objoid AND a.attnum = d.objsubid)
                                WHERE 
                                        a.attrelid = (SELECT oid FROM pg_class WHERE relname='{$table}') 
-                                       AND a.attname = '{$field}'
-                               ORDER BY a.attnum";
+                                       AND a.attname = '{$field}'";
                }
                                        
                return $this->selectSet($sql);
 
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres73.php,v 1.110 2004/05/25 00:46:53 soranzo Exp $
+ * $Id: Postgres73.php,v 1.111 2004/05/26 13:54:43 chriskl Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
                                        a.attrelid = (SELECT oid FROM pg_catalog.pg_class WHERE relname='{$table}'
                                                AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace WHERE
                                                nspname = '{$this->_schema}'))
-                                       AND a.attname = '{$field}'
-                               ORDER BY a.attnum";
+                                       AND a.attname = '{$field}'";
                }
 
                return $this->selectSet($sql);