Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ogr provider: don't add mysql table filter multiple times (fixes #13446)
(cherry picked from commit 32c5f55)
  • Loading branch information
jef-n committed Nov 26, 2015
1 parent 75b4d9e commit 27c6995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 27c6995

Please sign in to comment.