Commit f6d221d
Fix SET type casting to CHAR and BINARY
This commit fixes an issue where SET types were not properly converted
to their string representation when casting to CHAR or BINARY types.
The problem was that SET types use internal uint64 values to represent
bit fields, but when casting to CHAR or BINARY, the string representation
of the SET should be used instead.
Changes:
- Added special handling in convertValue() for SET types in both CHAR and BINARY conversion cases
- Convert SET uint64 bit field to string representation before passing to LongText/LongBlob converters
- Removed Skip flags from previously failing tests in script_queries.go
- Updated test expectations to include all SET values (including "defg")
Fixes dolthub/dolt#9511
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent e4d9d0a commit f6d221d
File tree
2 files changed
+23
-6
lines changed- enginetest/queries
- sql/expression
2 files changed
+23
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9911 | 9911 | | |
9912 | 9912 | | |
9913 | 9913 | | |
9914 | | - | |
9915 | | - | |
9916 | 9914 | | |
9917 | 9915 | | |
9918 | 9916 | | |
| 9917 | + | |
9919 | 9918 | | |
9920 | 9919 | | |
9921 | 9920 | | |
9922 | 9921 | | |
9923 | 9922 | | |
9924 | | - | |
9925 | | - | |
9926 | 9923 | | |
9927 | 9924 | | |
9928 | 9925 | | |
| 9926 | + | |
9929 | 9927 | | |
9930 | 9928 | | |
9931 | 9929 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| 287 | + | |
| 288 | + | |
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
289 | 292 | | |
290 | 293 | | |
291 | 294 | | |
| 295 | + | |
292 | 296 | | |
293 | 297 | | |
294 | 298 | | |
| |||
307 | 311 | | |
308 | 312 | | |
309 | 313 | | |
| 314 | + | |
310 | 315 | | |
311 | 316 | | |
312 | 317 | | |
| |||
468 | 473 | | |
469 | 474 | | |
470 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
471 | 490 | | |
472 | 491 | | |
473 | 492 | | |
| |||
0 commit comments