Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Applied bugfix patch from Stefanie Tellex:
- The bug occurs when you make two providers that access the same table, and then try to iterate through the features in each provider in a nested loop. - The provider in the inner loop would never have any features because all providers use the same cursor name so things would get messed up. - This patch fixes the bug by adding a providerId member to QgsPostgresProvider, and appending the id to all cursor names. git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8092 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
Showing
with
11 additions
and 6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -566,6 +566,8 @@ class QgsPostgresProvider:public QgsVectorDataProvider | ||
void disconnectDb(); | ||
|
||
static QMap<QString, Conn *> connections; | ||
static int providerIds; | ||
QString providerId; | ||
}; | ||
|
||
#endif |