Skip to content
Permalink
Browse files

Return an empty geomety types list when aspatial

  • Loading branch information
elpaso committed Mar 13, 2020
1 parent 2760f8a commit 2a751f734453874cda731e1f3758cdf4472ea3fb
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/qgsabstractdatabaseproviderconnection.cpp
@@ -193,7 +193,10 @@ void QgsAbstractDatabaseProviderConnection::TableProperty::addGeometryColumnType

QList<QgsAbstractDatabaseProviderConnection::TableProperty::GeometryColumnType> QgsAbstractDatabaseProviderConnection::TableProperty::geometryColumnTypes() const
{
return mGeometryColumnTypes;
if ( ! mGeometryColumn.isEmpty() )
return mGeometryColumnTypes;
else
return {};
}


0 comments on commit 2a751f7

Please sign in to comment.
You can’t perform that action at this time.