Skip to content
Permalink
Browse files

fix mssql iterator

  • Loading branch information
vcloarec authored and nyalldawson committed Jan 5, 2021
1 parent bb05c3b commit bc9ddada2ce903ccea4b0df73c7bcdda323de15e
@@ -445,7 +445,7 @@ QList<QList<QVariant> > QgsAbstractDatabaseProviderConnection::QueryResult::rows
// mRowCount might be -1 (unknown)
while ( mResultIterator && ( mRowCount < 0 || mRows.count() < mRowCount ) )
{
const QVariantList row { mResultIterator->nextRow() };
const QVariantList row( mResultIterator->nextRow() );
if ( row.isEmpty() )
{
break;
@@ -462,7 +462,7 @@ QList<QVariant> QgsAbstractDatabaseProviderConnection::QueryResult::nextRow()
return QList<QVariant>();
}

const QList<QVariant> row { mResultIterator->nextRow() };
const QList<QVariant> row( mResultIterator->nextRow() );

if ( ! row.isEmpty() )
{
@@ -280,7 +280,7 @@ QgsAbstractDatabaseProviderConnection::QueryResult QgsMssqlProviderConnection::e

QVariantList QgssMssqlProviderResultIterator::nextRow()
{
const QVariantList currentRow { mNextRow };
const QVariantList currentRow( mNextRow );
mNextRow = nextRowPrivate();
return currentRow;
}

0 comments on commit bc9ddad

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