Commit 1c68478
Fix CREATE TABLE enum default validation to return correct error type
Modified columndefault.go to detect enum data truncation errors and return
ErrInvalidColumnDefaultValue instead of ErrIncompatibleDefaultType to match
MySQL behavior exactly.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 446fb46 commit 1c68478
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9048 | 9048 | | |
9049 | 9049 | | |
9050 | 9050 | | |
9051 | | - | |
| 9051 | + | |
9052 | 9052 | | |
9053 | 9053 | | |
9054 | 9054 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| |||
229 | 234 | | |
230 | 235 | | |
231 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
232 | 241 | | |
233 | 242 | | |
234 | 243 | | |
| |||
0 commit comments