File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3190,7 +3190,7 @@ long QgsPostgresProvider::featureCount() const
3190
3190
// - but make huge dataset usable.
3191
3191
if ( !mIsQuery && mUseEstimatedMetadata )
3192
3192
{
3193
- sql = QStringLiteral ( " SELECT reltuples::int FROM pg_catalog.pg_class WHERE oid=regclass(%1)::oid" ).arg ( quotedValue ( mQuery ) );
3193
+ sql = QStringLiteral ( " SELECT reltuples::bigint FROM pg_catalog.pg_class WHERE oid=regclass(%1)::oid" ).arg ( quotedValue ( mQuery ) );
3194
3194
}
3195
3195
else
3196
3196
{
@@ -3249,7 +3249,7 @@ QgsRectangle QgsPostgresProvider::extent() const
3249
3249
{
3250
3250
if ( result.PQgetvalue ( 0 , 0 ).toInt () > 0 )
3251
3251
{
3252
- sql = QStringLiteral ( " SELECT reltuples::int FROM pg_catalog.pg_class WHERE oid=regclass(%1)::oid" ).arg ( quotedValue ( mQuery ) );
3252
+ sql = QStringLiteral ( " SELECT reltuples::bigint FROM pg_catalog.pg_class WHERE oid=regclass(%1)::oid" ).arg ( quotedValue ( mQuery ) );
3253
3253
result = connectionRO ()->PQexec ( sql );
3254
3254
if ( result.PQresultStatus () == PGRES_TUPLES_OK
3255
3255
&& result.PQntuples () == 1
You can’t perform that action at this time.
0 commit comments