Fix bug in opclass listings
authorchriskl <chriskl>
Tue, 26 Jul 2005 08:52:58 +0000 (08:52 +0000)
committerchriskl <chriskl>
Tue, 26 Jul 2005 08:52:58 +0000 (08:52 +0000)
HISTORY
classes/database/Postgres.php

diff --git a/HISTORY b/HISTORY
index a67ea2b868ea5f85e91f1a5eea8deeba513f5284..18ad2e828b88f89a4c05d7d0ad4a4c76217c3375 100644 (file)
--- a/HISTORY
+++ b/HISTORY
@@ -38,6 +38,7 @@ Bugs
 * Add automatic browser language selection for all languages
 * Stop duplicate insert on re-POST of data
 * Fix bug with exporting schema for servers < 7.3
+* Fix opclasses on 7.2 and below
 
 Translations
 * Japanese from Tadashi Jokagi
index 5a110d5b8ccf739a8e9d27da97f44a5026a73063..2dbd4e33017df5e11ede4d39fb910eed64e02143 100755 (executable)
@@ -4,7 +4,7 @@
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres.php,v 1.265 2005/07/15 08:09:39 chriskl Exp $
+ * $Id: Postgres.php,v 1.266 2005/07/26 08:53:00 chriskl Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
@@ -3679,7 +3679,7 @@ class Postgres extends ADODB_base {
                        SELECT DISTINCT
                                pa.amname, 
                                po.opcname, 
-                               (SELECT typname FROM pg_type t WHERE t.oid=opcdeftype) AS opcintype,
+                               (SELECT typname FROM pg_type t WHERE t.oid=opcintype) AS opcintype,
                                TRUE AS opcdefault,
                                NULL::text AS opccomment
                        FROM