Commit b2f57d9
committed
fix(deparser): emit CREATE INDEX trailing clauses in grammar order
NULLS NOT DISTINCT now follows the column/INCLUDE list and WHERE moves
after WITH/TABLESPACE, so partial unique indexes survive round-trip.1 parent a437944 commit b2f57d9
4 files changed
Lines changed: 62 additions & 7 deletions
File tree
- __fixtures__
- generated
- kitchen-sink/misc
- packages/deparser
- __tests__/kitchen-sink
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21413 | 21413 | | |
21414 | 21414 | | |
21415 | 21415 | | |
| 21416 | + | |
| 21417 | + | |
| 21418 | + | |
| 21419 | + | |
| 21420 | + | |
| 21421 | + | |
| 21422 | + | |
| 21423 | + | |
| 21424 | + | |
| 21425 | + | |
| 21426 | + | |
| 21427 | + | |
21416 | 21428 | | |
21417 | 21429 | | |
21418 | 21430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3808 | 3808 | | |
3809 | 3809 | | |
3810 | 3810 | | |
3811 | | - | |
3812 | | - | |
3813 | | - | |
| 3811 | + | |
| 3812 | + | |
3814 | 3813 | | |
3815 | 3814 | | |
3816 | 3815 | | |
| |||
3820 | 3819 | | |
3821 | 3820 | | |
3822 | 3821 | | |
3823 | | - | |
3824 | | - | |
3825 | | - | |
3826 | | - | |
3827 | 3822 | | |
3828 | 3823 | | |
3829 | 3824 | | |
3830 | 3825 | | |
3831 | 3826 | | |
| 3827 | + | |
| 3828 | + | |
| 3829 | + | |
| 3830 | + | |
| 3831 | + | |
3832 | 3832 | | |
3833 | 3833 | | |
3834 | 3834 | | |
| |||
0 commit comments