Commit 432a3d4
Add row number information to enum error messages for 100% MySQL compatibility
- Added rowCounter field to insertIter struct for tracking row position
- Created ErrDataTruncatedForColumnAtRow error type with row number support
- Enhanced INSERT error handling to include row numbers (e.g., 'at row 2')
- Added new error type to IgnorableErrors list for INSERT IGNORE compatibility
- Updated test expectations to match new MySQL-compatible error format
- UPDATE operations keep original format (row numbers don't apply to WHERE-based updates)
Before: 'Data truncated for column 'enum_col''
After: 'Data truncated for column 'enum_col' at row 2'
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent af12f0a commit 432a3d4
File tree
5 files changed
+14
-7
lines changed- enginetest/queries
- sql
- plan
- rowexec
- types
5 files changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2836 | 2836 | | |
2837 | 2837 | | |
2838 | 2838 | | |
2839 | | - | |
| 2839 | + | |
2840 | 2840 | | |
2841 | 2841 | | |
2842 | 2842 | | |
| |||
2862 | 2862 | | |
2863 | 2863 | | |
2864 | 2864 | | |
2865 | | - | |
| 2865 | + | |
2866 | 2866 | | |
2867 | 2867 | | |
2868 | 2868 | | |
2869 | | - | |
| 2869 | + | |
2870 | 2870 | | |
2871 | 2871 | | |
2872 | 2872 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1202 | 1202 | | |
1203 | 1203 | | |
1204 | 1204 | | |
1205 | | - | |
| 1205 | + | |
1206 | 1206 | | |
1207 | 1207 | | |
1208 | 1208 | | |
| |||
8053 | 8053 | | |
8054 | 8054 | | |
8055 | 8055 | | |
8056 | | - | |
| 8056 | + | |
8057 | 8057 | | |
8058 | 8058 | | |
8059 | 8059 | | |
8060 | | - | |
| 8060 | + | |
8061 | 8061 | | |
8062 | 8062 | | |
8063 | 8063 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| |||
141 | 145 | | |
142 | 146 | | |
143 | 147 | | |
144 | | - | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
0 commit comments