Skip to content
Permalink
Browse files

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

  • Loading branch information
jef-n committed Oct 1, 2015
1 parent 87d8a12 commit 32c5f551012a65a8705475266447b270dc2111ff
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/ogr/qgsogrprovider.cpp
@@ -369,7 +369,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 32c5f55

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