Commit eb9ff8c
Phase 10 Step 1: Add MariaDB 11.8+ spatial JSON support version flag
Added SpatialJsonSupport version flag to enable spatial type JSON handling for MariaDB 11.8+:
1. Added SpatialJsonSupport property to ServerVersionSupport base class (defaults to false)
2. Implemented SpatialJsonSupport in MariaDbServerVersionSupport:
- Returns true for MariaDB 11.8.0+
- Returns false for older versions and MySQL
3. Updated JsonTypesRelationalMySqlTest skip conditions:
- Changed from unconditional Skip to SupportedServerVersionLessThanCondition
- Spatial tests now run on MariaDB 11.8+ and all MySQL versions
- Spatial tests skip on MariaDB < 11.8
This follows the progressive implementation pattern - we now have version-aware skipping that will allow spatial JSON tests to run on MariaDB 11.8+. The next steps will involve testing and implementing any necessary fixes for MariaDB's spatial JSON handling.
Test behavior after this change:
- MySQL 8.0.40+: Spatial JSON tests run (as before)
- MariaDB 11.8+: Spatial JSON tests will now run (previously skipped)
- MariaDB 10.6-11.7: Spatial JSON tests skip (no spatial JSON support)
- MariaDB < 10.6: All JSON tests skip (no JSON_TABLE support)
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>1 parent b04c796 commit eb9ff8c
File tree
3 files changed
+11
-9
lines changed- src/EFCore.MySql/Infrastructure
- test/EFCore.MySql.FunctionalTests/Query
3 files changed
+11
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments