Skip to content
Permalink
Browse files
Fix build
  • Loading branch information
nyalldawson committed May 20, 2021
1 parent 9589813 commit 7c2c531b0f24299e7144c757bc97a645c2897187
Showing with 11 additions and 11 deletions.
  1. +11 −11 src/providers/hana/qgshanaproviderconnection.cpp
@@ -170,17 +170,17 @@ void QgsHanaProviderConnection::createVectorTable( const QString &schema,
}
QMap<int, int> map;
QString errCause;
QgsVectorLayerExporter::ExportError errCode = QgsHanaProvider::createEmptyLayer(
newUri.uri(),
fields,
wkbType,
srs,
overwrite,
&map,
&errCause,
options
);
if ( errCode != QgsVectorLayerExporter::ExportError::NoError )
Qgis::VectorExportResult res = QgsHanaProvider::createEmptyLayer(
newUri.uri(),
fields,
wkbType,
srs,
overwrite,
&map,
&errCause,
options
);
if ( res != Qgis::VectorExportResult::Success )
{
throw QgsProviderConnectionException( QObject::tr( "An error occurred while creating the vector layer: %1" ).arg( errCause ) );
}

0 comments on commit 7c2c531

Please sign in to comment.