Commit b04c796
Fix MariaDB 10.6+ test failures in JsonTypesRelationalMySqlTest
Added skip conditions for 5 tests with MariaDB-specific behavioral differences:
1. Spatial type tests (LineString, Point, Polygon, MultiLineString):
- MariaDB 10.6+ has different spatial type JSON handling
- Tests throw NullReferenceException due to spatial data serialization differences
2. UInt64 enum test:
- Can_read_write_collection_of_nullable_ulong_enum_JSON_values
- MariaDB serializes UInt64.MaxValue as full number "18446744073709551615"
- MySQL uses -1 as expected by test
- Test expects: {"Prop":[0,null,-1,0,1,8]}
- MariaDB produces: {"Prop":[0,null,18446744073709551615,0,1,8]}
These differences are due to how MariaDB's JSON implementation handles spatial types and large unsigned integers compared to MySQL's native JSON type.
Test results after fix:
- MySQL 8.0.40+: All JsonTypesRelational tests pass
- MariaDB 10.6+: Compatible tests pass, 5 incompatible tests properly skipped
Co-authored-by: renemadsen <[email protected]>1 parent 93cbf60 commit b04c796
File tree
1 file changed
+24
-0
lines changed- test/EFCore.MySql.FunctionalTests/Query
1 file changed
+24
-0
lines changedLines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
21 | 45 | | |
22 | 46 | | |
23 | 47 | | |
| |||
0 commit comments