Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgreprovider hide raster overviews #59884

Merged
merged 13 commits into from
Jan 17, 2025
Prev Previous commit
Next Next commit
only run if there is at least one result
JanCaha committed Jan 13, 2025
commit dbf5968ab07ad9e84842f8cc41a5a310e0f07f97
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresconn.cpp
Original file line number Diff line number Diff line change
@@ -1062,7 +1062,7 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP
QgsPostgresResult resultRasterOverviews;
resultRasterOverviews = LoggedPQexec( "QgsPostgresConn", sqlRasterOverviews );

if ( resultRasterOverviews.result() )
if ( resultRasterOverviews.result() && resultRasterOverviews.PQntuples() > 0 )
{
QVector<QgsPostgresRasterOverviewLayerProperty> overviews;
for ( int idx = 0; idx < resultRasterOverviews.PQntuples(); idx++ )