Skip to content
Browse files

Avoid spamming warnings on INSERT with generated fields.

Thanks to M. Kuhn for pointing out that the old code would drown the
console with warnings if one tries to load data into a table with
generated fields.
  • Loading branch information
espinafre authored and nyalldawson committed Jun 2, 2020
1 parent 04b5f79 commit 0308d67005daf1c1401d6aea556b8b9b6c0345f8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -2345,7 +2345,7 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList &flist, Flags flags )

if ( !mGeneratedValues.value( idx, QString() ).isEmpty() )
QgsLogger::warning( tr( "Skipping field %1 which is GENERATED." ).arg( fieldname ) );
QgsDebugMsg( QStringLiteral( "Skipping field %1 (idx %2) which is GENERATED." ).arg( fieldname, idx ) );

0 comments on commit 0308d67

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