Skip to content
Permalink
Browse files

Fix unnecessarily fussy close() for QgsMsSqlFeatureIterator

  • Loading branch information
nyalldawson committed Nov 19, 2017
1 parent 6f3ebde commit 7cd8e38c47ad53ed491b4635e8c0b1930a41d487
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/providers/mssql/qgsmssqlfeatureiterator.cpp
@@ -425,14 +425,8 @@ bool QgsMssqlFeatureIterator::close()
if ( mClosed )
return false;

if ( mQuery )
if ( mQuery && mQuery->isActive() )
{
if ( !mQuery->isActive() )
{
QgsDebugMsg( "QgsMssqlFeatureIterator::close on inactive query" );
return false;
}

mQuery->finish();
}

0 comments on commit 7cd8e38

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