We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 6f3ebde commit 7cd8e38Copy full SHA for 7cd8e38
src/providers/mssql/qgsmssqlfeatureiterator.cpp
@@ -425,14 +425,8 @@ bool QgsMssqlFeatureIterator::close()
425
if ( mClosed )
426
return false;
427
428
- if ( mQuery )
+ if ( mQuery && mQuery->isActive() )
429
{
430
- if ( !mQuery->isActive() )
431
- {
432
- QgsDebugMsg( "QgsMssqlFeatureIterator::close on inactive query" );
433
- return false;
434
- }
435
-
436
mQuery->finish();
437
}
438
0 commit comments