Commit 6ce63b9
dolthub/dolt#9426 - Support enum string context in functions
Fixed enum values to return their string representation instead of numeric index
when used in string contexts like LENGTH() and CONCAT() functions.
Changes:
- Modified ConvertToCollatedString in sql/types/strings.go to handle enum types
- Updated CONCAT function to use type-aware string conversion
- Enabled and fixed "enum conversion to strings" test
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 1af0f6e commit 6ce63b9
File tree
3 files changed
+40
-10
lines changed- enginetest/queries
- sql
- expression/function
- types
3 files changed
+40
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9068 | 9068 | | |
9069 | 9069 | | |
9070 | 9070 | | |
9071 | | - | |
| 9071 | + | |
9072 | 9072 | | |
9073 | 9073 | | |
9074 | 9074 | | |
| |||
9082 | 9082 | | |
9083 | 9083 | | |
9084 | 9084 | | |
9085 | | - | |
| 9085 | + | |
9086 | 9086 | | |
9087 | 9087 | | |
9088 | 9088 | | |
| |||
9091 | 9091 | | |
9092 | 9092 | | |
9093 | 9093 | | |
9094 | | - | |
| 9094 | + | |
9095 | 9095 | | |
9096 | 9096 | | |
9097 | 9097 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 132 | + | |
137 | 133 | | |
138 | 134 | | |
139 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
519 | 542 | | |
520 | 543 | | |
521 | 544 | | |
| |||
525 | 548 | | |
526 | 549 | | |
527 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
528 | 562 | | |
529 | 563 | | |
530 | 564 | | |
| |||
0 commit comments