Skip to content

Commit

Permalink
Add oracle to save to database action list providers
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 authored and nyalldawson committed Aug 10, 2022
1 parent c5a6509 commit 1e9411d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/processing/qgsprocessingoutputdestinationwidget.cpp
Expand Up @@ -479,7 +479,8 @@ void QgsProcessingLayerOutputDestinationWidget::saveToDatabase()
<< QStringLiteral( "mssql" )
<< QStringLiteral( "ogr" )
<< QStringLiteral( "hana" )
<< QStringLiteral( "spatialite" ), this );
<< QStringLiteral( "spatialite" )
<< QStringLiteral( "oracle" ), this );
widget->setPanelTitle( tr( "Save “%1” to Database Table" ).arg( mParameter->description() ) );
widget->setAcceptButtonVisible( true );

Expand All @@ -494,7 +495,7 @@ void QgsProcessingLayerOutputDestinationWidget::saveToDatabase()
if ( const QgsProcessingParameterFeatureSink *sink = dynamic_cast< const QgsProcessingParameterFeatureSink * >( mParameter ) )
{
if ( sink->hasGeometry() )
geomColumn = QStringLiteral( "geom" );
geomColumn = widget->dataProviderKey() == QLatin1String( "oracle" ) ? QStringLiteral( "GEOM" ) : QStringLiteral( "geom" );
}

if ( widget->dataProviderKey() == QLatin1String( "ogr" ) )
Expand Down

0 comments on commit 1e9411d

Please sign in to comment.