Commit a55150b
Fix: Remove ClrType check - always convert to MemoryStream for JSON
The ClrType check was preventing conversion for complex JSON types because
MySqlJsonTypeMapping<string> has ClrType = typeof(string) even when used
for complex JSON properties. Remove the check to always convert string to
MemoryStream for all JSON type mappings.
This fixes ComplexJsonStructuralEqualityMySqlTest.Two_associates which was
failing with "No coercion operator is defined between types 'System.String'
and 'System.IO.MemoryStream'".
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>1 parent e2285a2 commit a55150b
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
| 147 | + | |
150 | 148 | | |
151 | 149 | | |
152 | 150 | | |
153 | | - | |
154 | | - | |
155 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
156 | 154 | | |
157 | 155 | | |
158 | 156 | | |
| |||
163 | 161 | | |
164 | 162 | | |
165 | 163 | | |
166 | | - | |
167 | 164 | | |
168 | 165 | | |
169 | 166 | | |
| |||
0 commit comments