Fix estimated row count for < 7.2
authorsoranzo <soranzo>
Tue, 16 Nov 2004 12:40:29 +0000 (12:40 +0000)
committersoranzo <soranzo>
Tue, 16 Nov 2004 12:40:29 +0000 (12:40 +0000)
classes/database/Postgres.php

index 687079e40dbbdf08a9629ee999afdb586a94a060..42f58f17f52da9a277b235a94a8747deb2c5d81e 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.250 2004/11/10 01:46:35 chriskl Exp $
+ * $Id: Postgres.php,v 1.251 2004/11/16 12:40:29 soranzo Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
@@ -575,7 +575,7 @@ class Postgres extends ADODB_base {
                $sql = "SELECT NULL AS nspname, c.relname, 
                                        (SELECT usename FROM pg_user u WHERE u.usesysid=c.relowner) AS relowner, 
                                        (SELECT description FROM pg_description pd WHERE c.oid=pd.objoid) AS relcomment,
-                                       reltuples::integer
+                                       reltuples::integer AS reltuples
                                FROM pg_class c 
                                WHERE c.relkind='r' 
                                        AND NOT EXISTS (SELECT 1 FROM pg_rewrite r WHERE r.ev_class = c.oid AND r.ev_type = '1')