diff --git a/source/main.pas b/source/main.pas index 336e0022..160137dc 100644 --- a/source/main.pas +++ b/source/main.pas @@ -4946,7 +4946,7 @@ begin ngMSSQL: RowsTotal := MakeInt(DBObject.Connection.GetVar('SELECT SUM(rows) FROM sys.partitions WHERE index_id IN (0, 1) AND object_id = object_id('+esc(DBObject.Database+'.'+DBObject.Schema+'.'+DBObject.Name)+')')); ngPgSQL: - RowsTotal := MakeInt(DBObject.Connection.GetVar('SELECT reltuples FROM pg_class AS c LEFT JOIN pg_namespace AS n ON (n.oid = c.relnamespace) WHERE c.relkind='+esc('r')+' AND n.nspname='+esc(DBObject.Database)+' AND c.relname='+esc(DBObject.Name))); + RowsTotal := MakeInt(DBObject.Connection.GetVar('SELECT reltuples::bigint FROM pg_class AS c LEFT JOIN pg_namespace AS n ON (n.oid = c.relnamespace) WHERE c.relkind='+esc('r')+' AND n.nspname='+esc(DBObject.Database)+' AND c.relname='+esc(DBObject.Name))); else raise Exception.Create(MsgUnhandledNetType); end;