Repository navigation
Commit 77b71e9
Escape closing brackets in bracket-quoted identifiers
A bracket-quoted identifier whose value contains ] (e.g. [a]]b], value
a]b) serialized back to [a]b], which no longer re-parses. Double each ]
on display, mirroring the tokenizer folding ]] into ]. Redshift nested
quoted identifiers (["a]b"]) store the value as a complete
double-quoted string whose inner ] is literal, so those are left
unchanged.
Fixes apache#2409
Signed-off-by: Haim Dimer <[email protected]>1 parent 88ffee6 commit 77b71e9
2 files changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
388 | 399 | | |
389 | 400 | | |
390 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
940 | 952 | | |
941 | 953 | | |
942 | 954 | | |
| |||
0 commit comments