nifi-1247 Correction for check of UnmatchedFieldBehaviour in generateUpdate to match generateInsert correct functionality

Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
Daniel Cave 2015-12-03 18:55:46 +00:00 committed by Mark Payne
parent dae25accb7
commit 6bdcd3913f
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ public class ConvertJSONToSQL extends AbstractProcessor {
final ColumnDescription desc = schema.getColumns().get(normalizedColName);
if (desc == null) {
if (ignoreUnmappedFields) {
if (!ignoreUnmappedFields) {
throw new ProcessException("Cannot map JSON field '" + fieldName + "' to any column in the database");
} else {
continue;