Commit d821088
committed
review: collapse duplicate parse arms, real spans, honest doc comments
- Collapse the four near-identical parse arms in
parse_create_text_search; parse the subtype keyword once, then
parse name and options once, then map the subtype to the
Statement variant.
- Spanned impls now return the name's span instead of Span::empty(),
matching sibling Create* statements.
- Doc comments on each `options: Vec<SqlOption>` no longer claim
the parser enforces required keys; they note PostgreSQL's
requirements and clarify that enforcement is left to the engine.
- Add a test exercising schema-qualified option values
(e.g. PARSER = pg_catalog.default) to guard the round-trip.1 parent e568fea commit d821088
4 files changed
Lines changed: 57 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5768 | 5768 | | |
5769 | 5769 | | |
5770 | 5770 | | |
5771 | | - | |
| 5771 | + | |
| 5772 | + | |
| 5773 | + | |
5772 | 5774 | | |
5773 | 5775 | | |
5774 | 5776 | | |
| |||
5799 | 5801 | | |
5800 | 5802 | | |
5801 | 5803 | | |
5802 | | - | |
| 5804 | + | |
| 5805 | + | |
5803 | 5806 | | |
5804 | 5807 | | |
5805 | 5808 | | |
| |||
5830 | 5833 | | |
5831 | 5834 | | |
5832 | 5835 | | |
5833 | | - | |
| 5836 | + | |
| 5837 | + | |
| 5838 | + | |
5834 | 5839 | | |
5835 | 5840 | | |
5836 | 5841 | | |
| |||
5861 | 5866 | | |
5862 | 5867 | | |
5863 | 5868 | | |
5864 | | - | |
| 5869 | + | |
| 5870 | + | |
5865 | 5871 | | |
5866 | 5872 | | |
5867 | 5873 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8180 | 8180 | | |
8181 | 8181 | | |
8182 | 8182 | | |
8183 | | - | |
8184 | | - | |
8185 | | - | |
8186 | | - | |
8187 | | - | |
8188 | | - | |
8189 | | - | |
8190 | | - | |
| 8183 | + | |
| 8184 | + | |
8191 | 8185 | | |
8192 | | - | |
8193 | | - | |
8194 | | - | |
8195 | | - | |
8196 | | - | |
8197 | | - | |
8198 | | - | |
| 8186 | + | |
8199 | 8187 | | |
8200 | | - | |
8201 | | - | |
8202 | | - | |
8203 | | - | |
8204 | | - | |
8205 | | - | |
8206 | | - | |
8207 | | - | |
| 8188 | + | |
8208 | 8189 | | |
8209 | | - | |
8210 | | - | |
8211 | | - | |
8212 | | - | |
8213 | | - | |
8214 | | - | |
8215 | | - | |
| 8190 | + | |
8216 | 8191 | | |
8217 | | - | |
| 8192 | + | |
8218 | 8193 | | |
8219 | 8194 | | |
8220 | | - | |
8221 | | - | |
| 8195 | + | |
| 8196 | + | |
| 8197 | + | |
| 8198 | + | |
| 8199 | + | |
| 8200 | + | |
| 8201 | + | |
| 8202 | + | |
| 8203 | + | |
| 8204 | + | |
| 8205 | + | |
| 8206 | + | |
| 8207 | + | |
| 8208 | + | |
| 8209 | + | |
| 8210 | + | |
| 8211 | + | |
| 8212 | + | |
| 8213 | + | |
| 8214 | + | |
| 8215 | + | |
| 8216 | + | |
| 8217 | + | |
| 8218 | + | |
| 8219 | + | |
| 8220 | + | |
| 8221 | + | |
8222 | 8222 | | |
8223 | 8223 | | |
8224 | 8224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1069 | 1069 | | |
1070 | 1070 | | |
1071 | 1071 | | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1072 | 1082 | | |
1073 | 1083 | | |
1074 | 1084 | | |
| |||
0 commit comments