Commit 97f7387
Add database-aware test for nullable UInt64 enum serialization
Added Can_read_write_nullable_ulong_enum_JSON_values override with the same database-aware logic as the non-nullable version to handle MariaDB's different UInt64.MaxValue serialization.
The test:
1. Includes all 7 test cases matching the base class (0, Min, Max enum, Default, One, 8, Max numeric literal)
2. Uses runtime adjustment to change expectation from {"Prop":-1} to {"Prop":18446744073709551615} for MariaDB
3. Checks numeric value (ulong)value == 18446744073709551615 to catch both representations
Both nullable and non-nullable UInt64 enum tests now pass on MySQL and MariaDB.
Co-authored-by: renemadsen <[email protected]>1 parent b5a8561 commit 97f7387
File tree
1 file changed
+23
-0
lines changed- test/EFCore.MySql.FunctionalTests/Query
1 file changed
+23
-0
lines changedLines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
78 | 101 | | |
79 | 102 | | |
80 | 103 | | |
| |||
0 commit comments