Skip to content
Permalink
Browse files

ogr provider: don't add mysql table filter multiple times (fixes #13446)

(cherry picked from commit 32c5f55)
  • Loading branch information
jef-n committed Sep 29, 2015
1 parent 75b4d9e commit 27c69959eb8dfb6d5d41c3cefd7e0e52752722f4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/ogr/qgsogrprovider.cpp
@@ -370,7 +370,7 @@ QgsOgrProvider::QgsOgrProvider( QString const & uri )
QgsDebugMsg( "mSubsetString: " + mSubsetString );
CPLSetConfigOption( "OGR_ORGANIZE_POLYGONS", "ONLY_CCW" ); // "SKIP" returns MULTIPOLYGONs for multiringed POLYGONs

if ( mFilePath.startsWith( "MySQL:" ) && !mLayerName.isEmpty() )
if ( mFilePath.startsWith( "MySQL:" ) && !mLayerName.isEmpty() && !mFilePath.endsWith( ",tables=" + mLayerName ) )
{
mFilePath += ",tables=" + mLayerName;
}

0 comments on commit 27c6995

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