mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-02 00:02:12 -05:00
Fix unnecessarily fussy close() for QgsMsSqlFeatureIterator
This commit is contained in:
parent
6f3ebdee3c
commit
7cd8e38c47
@ -425,14 +425,8 @@ bool QgsMssqlFeatureIterator::close()
|
|||||||
if ( mClosed )
|
if ( mClosed )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ( mQuery )
|
if ( mQuery && mQuery->isActive() )
|
||||||
{
|
{
|
||||||
if ( !mQuery->isActive() )
|
|
||||||
{
|
|
||||||
QgsDebugMsg( "QgsMssqlFeatureIterator::close on inactive query" );
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
mQuery->finish();
|
mQuery->finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user