From 194dac6353c93ecf87582002967ff1e7c5d0fcfc Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Sat, 17 Jul 2021 20:23:32 +0700 Subject: [PATCH] [db2] Fix compilation against qt6 --- src/providers/db2/qgsdb2provider.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/providers/db2/qgsdb2provider.cpp b/src/providers/db2/qgsdb2provider.cpp index 230c69be0a4..a1885e6e7cd 100644 --- a/src/providers/db2/qgsdb2provider.cpp +++ b/src/providers/db2/qgsdb2provider.cpp @@ -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 list = query.boundValues().values(); for ( int i = 0; i < list.size(); ++i ) @@ -1576,13 +1576,15 @@ Qgis::VectorExportResult QgsDb2Provider::createEmptyLayer( const QString &uri, } } +#if 0 + // Show bound values QList 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();