Skip to content

Commit

Permalink
Avoid spamming warnings on INSERT with generated fields.
Browse files Browse the repository at this point in the history
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 0308d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -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 ) );
continue;
}

Expand Down

0 comments on commit 0308d67

Please sign in to comment.