fix bug report #1806540, report & fix by John Evans (gnugeek)
authorioguix <ioguix>
Tue, 2 Oct 2007 21:36:35 +0000 (21:36 +0000)
committerioguix <ioguix>
Tue, 2 Oct 2007 21:36:35 +0000 (21:36 +0000)
classes/database/Postgres.php
classes/database/Postgres72.php
classes/database/Postgres73.php
classes/database/Postgres80.php
classes/plugins/Slony.php

index ee00378baa6163ac7736a19274b1c9cd04ed137f..cdbcc83bd1879d0b056955ab41e7f82116fafa93 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.305 2007/09/29 09:09:45 ioguix Exp $
+ * $Id: Postgres.php,v 1.306 2007/10/02 21:36:35 ioguix Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
@@ -644,7 +644,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 AS reltuples
+                                       reltuples::bigint 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')
index 4c5a583f1c0b86f1e8b25459eb9ecff0bb7574bb..7ecad1b4f066063464833ed8edbcc54902f9d595 100644 (file)
@@ -4,7 +4,7 @@
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres72.php,v 1.89 2007/04/01 16:02:07 xzilla Exp $
+ * $Id: Postgres72.php,v 1.90 2007/10/02 21:36:35 ioguix Exp $
  */
 
 
@@ -205,7 +205,7 @@ class Postgres72 extends Postgres71 {
                $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 AND objsubid = 0) AS relcomment,
-                                       reltuples::integer
+                                       reltuples::bigint
                         FROM pg_class c WHERE c.relkind='r' {$where}ORDER BY relname";
                return $this->selectSet($sql);
        }
index d49a34309a4ba19967d7bd8c7b11978d8af104e7..3910e69139fb8e82dfbf000e9dd63cf0a86ee10b 100644 (file)
@@ -4,7 +4,7 @@
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres73.php,v 1.172 2007/09/29 09:09:45 ioguix Exp $
+ * $Id: Postgres73.php,v 1.173 2007/10/02 21:36:35 ioguix Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
@@ -446,7 +446,7 @@ class Postgres73 extends Postgres72 {
                } else {
                        $sql = "SELECT c.relname, pg_catalog.pg_get_userbyid(c.relowner) AS relowner, 
                                                pg_catalog.obj_description(c.oid, 'pg_class') AS relcomment,
-                                               reltuples::integer
+                                               reltuples::bigint
                                        FROM pg_catalog.pg_class c
                                        LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
                                        WHERE c.relkind = 'r'
index 77918358d59bf437019b8d49e064e61d7da14eee..f5e01508c962845a94505c215f41905e8030a996 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * PostgreSQL 8.0 support
  *
- * $Id: Postgres80.php,v 1.22 2007/03/28 18:52:34 soranzo Exp $
+ * $Id: Postgres80.php,v 1.23 2007/10/02 21:36:35 ioguix Exp $
  */
 
 include_once('./classes/database/Postgres74.php');
@@ -171,7 +171,7 @@ class Postgres80 extends Postgres74 {
                } else {
                        $sql = "SELECT c.relname, pg_catalog.pg_get_userbyid(c.relowner) AS relowner, 
                                                pg_catalog.obj_description(c.oid, 'pg_class') AS relcomment,
-                                               reltuples,
+                                               reltuples:bigint,
                                                (SELECT spcname FROM pg_catalog.pg_tablespace pt WHERE pt.oid=c.reltablespace) AS tablespace
                                        FROM pg_catalog.pg_class c
                                        LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
index a6054af2a7ee91abc1b8d8670d677fe054f2d2b1..94061fa817edca253e1a4bde96d9c19befe27f69 100755 (executable)
@@ -3,7 +3,7 @@
 /**
  * A class that implements the Slony 1.0.x support plugin
  *
- * $Id: Slony.php,v 1.14 2007/01/10 02:26:25 soranzo Exp $
+ * $Id: Slony.php,v 1.15 2007/10/02 21:36:35 ioguix Exp $
  */
 
 include_once('./classes/plugins/Plugin.php');
@@ -493,7 +493,7 @@ class Slony extends Plugin {
 
                $sql = "SELECT st.tab_id, c.relname, n.nspname, n.nspname||'.'||c.relname AS qualname,
                                        pg_catalog.pg_get_userbyid(c.relowner) AS relowner, 
-                                       reltuples::integer";
+                                       reltuples::bigint";
                // Tablespace
                if ($data->hasTablespaces()) {
                        $sql .= ", (SELECT spcname FROM pg_catalog.pg_tablespace pt WHERE pt.oid=c.reltablespace) AS tablespace";