mirror of https://github.com/sysown/proxysql
1. Introduced extra paranethesis at the beggining and end of the regex for maching queries surrounded by them like: `( SELECT ... )`. 2. Added explicit SELECT at the beggining to mach queries starting with `SELECT`. 2. Introduced a new 'OR' in the first part of the regex: `|(?:NULL)` in order to avoid collapsing NULL values followed by commas without spaces. 3. Improved final section of the regex `(?:)` that was previously macthing with multiple empty groups, inducing a complete collapse of the initial query into an empty value in case of not matching the initial capturing group. With the new one, in case of emtpy value the external parenthesis are matched, for being remove later from the value.pull/3451/head
parent
ee3bf049d1
commit
a0020a43f2
Loading…
Reference in new issue