Skip to content
Permalink
Browse files
Fix duplicated display of TopoGeometry layers
Closes #42551
  • Loading branch information
strk committed Apr 27, 2021
1 parent bb433d6 commit 8b98f0fb9c1c7af9d18680358175abdb520051ec
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/providers/postgres/qgspostgresconn.cpp
@@ -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 );

0 comments on commit 8b98f0f

Please sign in to comment.