Skip to content
Permalink
Browse files
Fix build
  • Loading branch information
nyalldawson committed May 20, 2021
1 parent fc796b4 commit 07e0748673d922e55364e0b7dcad815ab7658fc5
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/providers/db2/qgsdb2provider.cpp
@@ -1285,7 +1285,7 @@ bool QgsDb2Provider::changeGeometryValues( const QgsGeometryMap &geometry_map )
return true;
}

QgsVectorLayerExporter::ExportError QgsDb2Provider::createEmptyLayer( const QString &uri,
Qgis::VectorExportResult QgsDb2Provider::createEmptyLayer( const QString &uri,
const QgsFields &fields,
QgsWkbTypes::Type wkbType,
const QgsCoordinateReferenceSystem &srs,
@@ -1308,7 +1308,7 @@ QgsVectorLayerExporter::ExportError QgsDb2Provider::createEmptyLayer( const QStr
{
if ( errorMessage )
*errorMessage = errMsg;
return QgsVectorLayerExporter::ErrConnectionFailed;
return Qgis::VectorExportResult::ErrorConnectionFailed;
}

// Get the SRS name using srid, needed to register the spatial column
@@ -1433,7 +1433,7 @@ QgsVectorLayerExporter::ExportError QgsDb2Provider::createEmptyLayer( const QStr
{
*errorMessage = lastError;
}
return QgsVectorLayerExporter::ErrCreateLayer;
return Qgis::VectorExportResult::ErrorCreatingLayer;
}
}
}
@@ -1473,7 +1473,7 @@ QgsVectorLayerExporter::ExportError QgsDb2Provider::createEmptyLayer( const QStr
{
*errorMessage = QObject::tr( "Unsupported type for field %1" ).arg( fld.name() );
}
return QgsVectorLayerExporter::ErrAttributeTypeUnsupported;
return Qgis::VectorExportResult::ErrorAttributeTypeUnsupported;
}

if ( oldToNewAttrIdxMap )
@@ -1513,7 +1513,7 @@ QgsVectorLayerExporter::ExportError QgsDb2Provider::createEmptyLayer( const QStr
{
*errorMessage = lastError;
}
return QgsVectorLayerExporter::ErrCreateLayer;
return Qgis::VectorExportResult::ErrorCreatingLayer;
}


@@ -1591,7 +1591,7 @@ QgsVectorLayerExporter::ExportError QgsDb2Provider::createEmptyLayer( const QStr

}
QgsDebugMsg( QStringLiteral( "successfully created empty layer" ) );
return QgsVectorLayerExporter::NoError;
return Qgis::VectorExportResult::Success;
}

QString QgsDb2Provider::qgsFieldToDb2Field( const QgsField &field )
@@ -1746,7 +1746,7 @@ QList< QgsDataItemProvider * > QgsDb2ProviderMetadata::dataItemProviders() const
return providers;
}

QgsVectorLayerExporter::ExportError QgsDb2ProviderMetadata::createEmptyLayer(
Qgis::VectorExportResult QgsDb2ProviderMetadata::createEmptyLayer(
const QString &uri,
const QgsFields &fields,
QgsWkbTypes::Type wkbType,

0 comments on commit 07e0748

Please sign in to comment.