[Qgis-developer] qgspostgresprovider cursor bug and patch
Stefanie Tellex
stefie10 at media.mit.edu
Tue Jan 29 17:20:00 EST 2008
Hi,
I'm not sure the best place to post this, so apologies if this isn't the
right forum. I found and fixed a bug in QgsPostgresProvider. 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.
I fixed the bug by adding a providerId member to QgsPostgresProvider,
and appending the id to all cursor names. The patch is attached,
against version 8091 of https://svn.qgis.org/repos/qgis/trunk/qgis.
Stefanie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qgspostgresprovider_ids_r8091.patch
Type: text/x-patch
Size: 2590 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/qgis-developer/attachments/20080129/e878740d/qgspostgresprovider_ids_r8091.bin
More information about the Qgis-developer
mailing list