Skip to content

Commit

Permalink
[processing] fix loading geometryless tables with PostGISExecuteAndLo…
Browse files Browse the repository at this point in the history
…adSQL in qgsdatasourceuri
  • Loading branch information
jdlom authored and nyalldawson committed Dec 28, 2020
1 parent fcd9886 commit 71eed6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsdatasourceuri.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ QString QgsDataSourceUri::uri( bool expandAuthConfig ) const
{
uri += QStringLiteral( " table=%1%2" )
.arg( quotedTablename(),
mGeometryColumn.isNull() ? QString() : QStringLiteral( " (%1)" ).arg( columnName ) );
mGeometryColumn.isEmpty() ? QString() : QStringLiteral( " (%1)" ).arg( columnName ) );
}
else if ( !mSchema.isEmpty() )
{
Expand Down

0 comments on commit 71eed6e

Please sign in to comment.