Skip to content

Commit 71eed6e

Browse files
jdlomnyalldawson
authored andcommittedDec 28, 2020
[processing] fix loading geometryless tables with PostGISExecuteAndLoadSQL in qgsdatasourceuri
1 parent fcd9886 commit 71eed6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsdatasourceuri.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ QString QgsDataSourceUri::uri( bool expandAuthConfig ) const
584584
{
585585
uri += QStringLiteral( " table=%1%2" )
586586
.arg( quotedTablename(),
587-
mGeometryColumn.isNull() ? QString() : QStringLiteral( " (%1)" ).arg( columnName ) );
587+
mGeometryColumn.isEmpty() ? QString() : QStringLiteral( " (%1)" ).arg( columnName ) );
588588
}
589589
else if ( !mSchema.isEmpty() )
590590
{

0 commit comments

Comments
 (0)