Commit a510935
committed
Bug#26867509: JSON_OBJECT CREATES INVALID JSON CODE
When inserting JSON values from a grouped query into a string column,
the inserted values could sometimes include the concatenation of all
the values previously inserted into that column.
The fix is to make Item_copy_json::save_in_field_inner() reset the
buffer before converting the JSON value to text.
(cherry picked from commit 0178fbc193bfaa0af49136e444ad5b73586d6f83)1 parent 7bc11be commit a510935
File tree
4 files changed
+38
-0
lines changed- mysql-test/suite/json
- inc
- r
- sql
4 files changed
+38
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4838 | 4838 | | |
4839 | 4839 | | |
4840 | 4840 | | |
| 4841 | + | |
4841 | 4842 | | |
4842 | 4843 | | |
4843 | 4844 | | |
| |||
0 commit comments