Commit bd35a7e
committed
fix: Include EXPRESSION column in MySQL get_indexes_sql for functional indexes
The information_schema.statistics query was only returning COLUMN_NAME, which
is NULL for functional (expression) indexes like JSON path indexes.
Use COALESCE to return either COLUMN_NAME or the expression wrapped in
parentheses, matching the original SHOW KEYS behavior.
Also include SEQ_IN_INDEX for proper ordering.1 parent da0ac48 commit bd35a7e
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
655 | | - | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
656 | 660 | | |
657 | | - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
658 | 664 | | |
659 | 665 | | |
660 | 666 | | |
| |||
0 commit comments