Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 20, 2021
1 parent 9589813 commit 7c2c531
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/providers/hana/qgshanaproviderconnection.cpp
Expand Up @@ -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 ) );
}
Expand Down

0 comments on commit 7c2c531

Please sign in to comment.