[
https://issues.apache.org/jira/browse/NIFI-5342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16562649#comment-16562649
]
ASF GitHub Bot commented on NIFI-5342:
--------------------------------------
Github user mattyb149 commented on the issue:
https://github.com/apache/nifi/pull/2923
+1 LGTM, tried with keywords as database names and table names (and
regression tested existing DBs and tables), everything looks good. Thanks for
the improvement! Merging to master.
> CaptureChangeMySQL didn't escape database name
> ----------------------------------------------
>
> Key: NIFI-5342
> URL: https://issues.apache.org/jira/browse/NIFI-5342
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Tanapol Nearunchorn
> Assignee: Uday Kale
> Priority: Major
> Fix For: 1.8.0
>
>
> CaptureChangeMySQL didn't escape database name as you can see:
> [https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-cdc/nifi-cdc-mysql-bundle/nifi-cdc-mysql-processors/src/main/java/org/apache/nifi/cdc/mysql/processors/CaptureChangeMySQL.java#L1003]
>
> And also with the line 1004, which query from a table.
> It can cause problems when there is database or table name that contains a
> reserved keyword.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)