Skip to content

Commit

Permalink
[db2] Fix compilation against qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jul 18, 2021
1 parent cdce377 commit 194dac6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/providers/db2/qgsdb2provider.cpp
Expand Up @@ -1138,8 +1138,8 @@ bool QgsDb2Provider::addFeatures( QgsFeatureList &flist, Flags flags )
query.bindValue( bindIdx, bytea, QSql::In | QSql::Binary );
}

// Show bound values
#if 0
// Show bound values
QList<QVariant> list = query.boundValues().values();

for ( int i = 0; i < list.size(); ++i )
Expand Down Expand Up @@ -1576,13 +1576,15 @@ Qgis::VectorExportResult QgsDb2Provider::createEmptyLayer( const QString &uri,
}
}

#if 0
// Show bound values
QList<QVariant> list = query.boundValues().values();
for ( int i = 0; i < list.size(); ++i )
{
QgsDebugMsg( QStringLiteral( "i: %1; value: %2; type: %3" )
.arg( i ).arg( list.at( i ).toString().toLatin1().data(), list.at( i ).typeName() ) );
}

#endif
}
// clear any resources hold by the query
q.clear();
Expand Down

0 comments on commit 194dac6

Please sign in to comment.