Commit 247f89a
Fix enum columns cannot have auto_increment
Added validation to prevent enum columns from being used with auto_increment.
This matches MySQL behavior where auto_increment can only be used with numeric types.
Changes:
- Added ErrInvalidColumnSpecifier error message
- Added enum type validation in validateAutoIncrementModify and validateAutoIncrementAdd
- Enabled previously skipped test case for enum auto_increment validation
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 1af0f6e commit 247f89a
File tree
3 files changed
+12
-1
lines changed- enginetest/queries
- sql
- analyzer
3 files changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9000 | 9000 | | |
9001 | 9001 | | |
9002 | 9002 | | |
9003 | | - | |
| 9003 | + | |
9004 | 9004 | | |
9005 | 9005 | | |
9006 | 9006 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
794 | 798 | | |
795 | 799 | | |
796 | 800 | | |
| |||
815 | 819 | | |
816 | 820 | | |
817 | 821 | | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
818 | 826 | | |
819 | 827 | | |
820 | 828 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
672 | 675 | | |
673 | 676 | | |
674 | 677 | | |
| |||
0 commit comments