You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "su heng (Jira)" <ji...@apache.org> on 2022/10/27 01:56:00 UTC
[jira] [Created] (NIFI-10705) includePrimaryKeys has wrong value when statementType set to "User statement.type Attribute""
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)