Commit 2032865
Fix enum error message to include row number to match MySQL exactly
- Added ErrDataTruncatedForColumnAtRow error type in types/enum.go
- Added rowNumber field to insertIter struct to track current row
- Modified enum error conversion in insert.go to use row-specific error
- Updated test expectations in script_queries.go to match new format
- MySQL returns: 'Data truncated for column 'e' at row 1'
- Now matches MySQL behavior exactly
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 17e8eb1 commit 2032865
File tree
3 files changed
+12
-7
lines changed- enginetest/queries
- sql
- rowexec
- types
3 files changed
+12
-7
lines changed| 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 | | |
| |||
9221 | 9221 | | |
9222 | 9222 | | |
9223 | 9223 | | |
9224 | | - | |
| 9224 | + | |
9225 | 9225 | | |
9226 | 9226 | | |
9227 | 9227 | | |
| |||
9322 | 9322 | | |
9323 | 9323 | | |
9324 | 9324 | | |
9325 | | - | |
| 9325 | + | |
9326 | 9326 | | |
9327 | 9327 | | |
9328 | 9328 | | |
| |||
9332 | 9332 | | |
9333 | 9333 | | |
9334 | 9334 | | |
9335 | | - | |
| 9335 | + | |
9336 | 9336 | | |
9337 | 9337 | | |
9338 | 9338 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
0 commit comments