Commit 8a04ae3
committed
Fix INSERT column list parsing to handle keyword column names
The parseInsert function was only checking for token.IDENT when parsing
column lists in INSERT statements. Column names like 'key' and 'value'
are keywords with their own tokens, so they were being skipped.
Changed to use parseIdentifierName() which handles both IDENT tokens
and keywords that can be used as identifiers.1 parent f48af3a commit 8a04ae3
30 files changed
Lines changed: 29 additions & 263 deletions
File tree
- parser
- testdata
- 00531_aggregate_over_nullable
- 00605_intersections_aggregate_functions
- 00615_nullable_alter_optimize
- 00671_max_intersections
- 00927_asof_joins
- 00950_test_double_delta_codec
- 00950_test_gorilla_codec
- 01213_alter_rename_with_default_zookeeper_long
- 01275_alter_rename_column_default_expr
- 01276_alter_rename_column_materialized_expr
- 01323_add_scalars_in_time
- 01763_long_ttl_group_by
- 01781_merge_tree_deduplication
- 01911_logical_error_minus
- 02313_test_fpc_codec
- 02508_bad_graphite
- 02564_read_in_order_final_desc
- 02725_any_join_single_row
- 02812_pointwise_array_operations
- 02842_vertical_merge_after_add_drop_column
- 02883_array_scalar_mult_div_modulo
- 02885_create_distributed_table_without_as
- 02949_ttl_group_by_bug
- 03045_unknown_identifier_alias_substitution
- 03100_lwu_45_query_condition_cache
- 03170_part_offset_as_table_column
- 03254_timeseries_instant_value_aggregate_functions
- 03566_one_row_summing_merge_tree
- 03711_merge_tree_deduplication_with_disk_not_support_writing_with_append
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
1173 | | - | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
1174 | 1176 | | |
1175 | | - | |
1176 | | - | |
| 1177 | + | |
| 1178 | + | |
1177 | 1179 | | |
1178 | | - | |
1179 | 1180 | | |
1180 | 1181 | | |
1181 | 1182 | | |
| |||
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 1 | + | |
Lines changed: 1 addition & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 1 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
0 commit comments