Skip to content
Permalink
Browse files

Merge pull request #36434 from qgis-bot/backport-36364-to-release-3_12

[Backport release-3_12] [Oracle] Force multi geometry type at layer level
  • Loading branch information
rldhont committed May 14, 2020
2 parents f6aa330 + 75dded4 commit ffdd0524418657fe95e99cd8d1e211152cbc6bd8
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/providers/oracle/qgsoracleprovider.cpp
@@ -78,6 +78,10 @@ QgsOracleProvider::QgsOracleProvider( QString const &uri, const ProviderOptions
mSqlWhereClause = mUri.sql();
mSrid = mUri.srid().toInt();
mRequestedGeomType = mUri.wkbType();
if ( QgsWkbTypes::isSingleType( mRequestedGeomType ) && QgsWkbTypes::geometryType( mRequestedGeomType ) != QgsWkbTypes::PointGeometry )
{
mRequestedGeomType = QgsWkbTypes::multiType( mRequestedGeomType );
}
mUseEstimatedMetadata = mUri.useEstimatedMetadata();
mIncludeGeoAttributes = mUri.hasParam( "includegeoattributes" ) ? mUri.param( "includegeoattributes" ) == "true" : false;

0 comments on commit ffdd052

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