Skip to content
Permalink
Browse files
[db2] Fix compilation against qt6
  • Loading branch information
nirvn committed Jul 18, 2021
1 parent cdce377 commit 194dac6353c93ecf87582002967ff1e7c5d0fcfc
Showing with 4 additions and 2 deletions.
  1. +4 −2 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<QVariant> 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<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();

0 comments on commit 194dac6

Please sign in to comment.