fix table browsing for 7.4 - again
authorchriskl <chriskl>
Sun, 21 Sep 2003 02:58:16 +0000 (02:58 +0000)
committerchriskl <chriskl>
Sun, 21 Sep 2003 02:58:16 +0000 (02:58 +0000)
HISTORY
classes/database/Postgres74.php

diff --git a/HISTORY b/HISTORY
index 0d6b5e536a143702cb0223907d047449c69c8404..27854d1219916d862e5637ef19d4ab2e321545d8 100644 (file)
--- a/HISTORY
+++ b/HISTORY
@@ -4,6 +4,11 @@ phpPgAdmin History
 Version 3.1 (19-Sep-2003)
 -------------------------
 
+Bug Fixes:
+* Table browsing for 7.4 fixed
+* Synch script for translators disabled due to bugginess.  If you want
+  to use it, just comment out the warning lines from the script itself.
+
 Translations:
 * Trad. Chinese
 * Dutch
index a6e1ef62d9f2817222e859baa2219136b8323251..a023443b52319b1b13f718f10b776a5c5538d4ae 100644 (file)
@@ -4,7 +4,7 @@
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres74.php,v 1.13 2003/09/14 10:03:28 chriskl Exp $
+ * $Id: Postgres74.php,v 1.14 2003/09/21 02:58:16 chriskl Exp $
  */
 
 include_once('classes/database/Postgres73.php');
@@ -49,7 +49,7 @@ class Postgres74 extends Postgres73 {
                $sql = "SELECT indrelid, indkey FROM pg_catalog.pg_index WHERE indisunique AND 
                        indrelid=(SELECT oid FROM pg_catalog.pg_class WHERE relname='{$table}' AND
                        relnamespace=(SELECT oid FROM pg_catalog.pg_namespace WHERE nspname='{$this->_schema}'))
-                       AND indpred IS NULL AND indproc IS NULL ORDER BY indisprimary DESC LIMIT 1";
+                       AND indpred IS NULL AND indexprs IS NULL ORDER BY indisprimary DESC LIMIT 1";
                $rs = $this->selectSet($sql);
 
                // If none, check for an OID column.  Even though OIDs can be duplicated, the edit and delete row