We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent c165e1f commit f68cfc7Copy full SHA for f68cfc7
src/providers/ogr/qgsogrprovider.cpp
@@ -366,6 +366,11 @@ QgsOgrProvider::QgsOgrProvider( QString const & uri )
366
QgsDebugMsg( "mSubsetString: " + mSubsetString );
367
CPLSetConfigOption( "OGR_ORGANIZE_POLYGONS", "ONLY_CCW" ); // "SKIP" returns MULTIPOLYGONs for multiringed POLYGONs
368
369
+ if ( mFilePath.startsWith( "MySQL:" ) && !mLayerName.isEmpty() )
370
+ {
371
+ mFilePath += ",tables=" + mLayerName;
372
+ }
373
+
374
// first try to open in update mode (unless specified otherwise)
375
if ( !openReadOnly )
376
ogrDataSource = OGROpen( TO8F( mFilePath ), true, &ogrDriver );
0 commit comments