su heng created NIFI-10705:
------------------------------

             Summary: includePrimaryKeys has wrong value when statementType set 
to "User statement.type Attribute""
                 Key: NIFI-10705
                 URL: https://issues.apache.org/jira/browse/NIFI-10705
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
    Affects Versions: 1.18.0
            Reporter: su heng
         Attachments: ConvertJSONToSQL.patch

{code:java}
final boolean includePrimaryKeys = UPDATE_TYPE.equals(statementType) && 
updateKeys == null; {code}
above code should do after evaluate statementType.
{code:java}
if (USE_ATTR_TYPE.equals(statementType)) {
    statementType = flowFile.getAttribute(STATEMENT_TYPE_ATTRIBUTE);
} {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to