Commit e2285a2
Fix: Only convert to MemoryStream for non-string CLR types
The previous fix converted ALL JSON strings to MemoryStream, breaking regular JSON columns mapped to string.
Now only converts to MemoryStream when ClrType != typeof(string), i.e., for complex JSON types only.
Fixes the regression where BuiltInDataTypesMySqlTest.Can_insert_and_read_back_all_mapped_data_types_set_to_null_in_batch was failing with "No coercion operator is defined between types 'System.IO.MemoryStream' and 'System.String'".
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>1 parent db4480e commit e2285a2
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| 166 | + | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| |||
0 commit comments