Commit b7d0a23
Add backtick quoting for special characters in type parameters
- Add needsBacktickQuoting helper to detect identifiers needing backticks
- Wrap NameTypePair names with special chars in backticks
Fixes 03573_json_keys_with_dots/stmt7 and 03205_json_cast_from_string/stmt5
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 50d0966 commit b7d0a23
3 files changed
Lines changed: 22 additions & 11 deletions
File tree
- internal/explain
- parser/testdata
- 03205_json_cast_from_string
- 03573_json_keys_with_dots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
291 | 305 | | |
292 | 306 | | |
293 | 307 | | |
| |||
313 | 327 | | |
314 | 328 | | |
315 | 329 | | |
316 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
317 | 336 | | |
318 | 337 | | |
319 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
0 commit comments