Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix duplicated display of TopoGeometry layers
Closes #42551
  • Loading branch information
strk committed Apr 27, 2021
1 parent bb433d6 commit 8b98f0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/providers/postgres/qgspostgresconn.cpp
Expand Up @@ -732,10 +732,16 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP
{
sql += QLatin1String( " AND (n.nspname,c.relname,a.attname) NOT IN (SELECT \"schema\",\"table\",\"column\" FROM pointcloud_columns)" );
}

if ( foundInTables & ( 1 << SctRaster ) )
{
sql += QLatin1String( " AND (n.nspname,c.relname,a.attname) NOT IN (SELECT \"r_table_schema\",\"r_table_name\",\"r_raster_column\" FROM raster_columns)" );
}

if ( foundInTables & ( 1 << SctTopoGeometry ) )
{
sql += QLatin1String( " AND (n.nspname,c.relname,a.attname) NOT IN (SELECT \"schema_name\",\"table_name\",\"feature_column\" FROM topology.layer)" );
}
}

QgsDebugMsgLevel( "getting spatial table info from pg_catalog: " + sql, 2 );
Expand Down

0 comments on commit 8b98f0f

Please sign in to comment.