You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2019/06/12 01:31:16 UTC
[GitHub] [nifi] ijokarumawak commented on issue #3528: NIFI-6370: Allow
multiple SQL statements in PutDatabaseRecord
ijokarumawak commented on issue #3528: NIFI-6370: Allow multiple SQL statements in PutDatabaseRecord
URL: https://github.com/apache/nifi/pull/3528#issuecomment-501085139
Confirmed that multiple SQL statements delimited by ';' can be executed as expected. LGTM +1. Merging to master. Thanks @mattyb149 !
Note for those who wonder what the regex `(?<!\\);` means, that is a 'negative look behind'. The regex searches `;` and checks backwards and match only if there is NOT a preceding back-slash (`\\` is an escaped `\`). In short, it doesn't treat escaped semi-colon as a SQL delimiter. The regex does not split statements with `\;`, so that semi-colon can be used within a statement.
https://www.regular-expressions.info/lookaround.html
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services