You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that at some point, we changed our JSON encoding/decoding scheme, which led to different behavior. Previously, we showed \\n, but now we have \n, which causes issues with JSON-in-JSON encoding.
mysql> create table mre(field string);
mysql> insert into mre (field) values ('{"value":"Hello\nWorld"}');
mysql>select* from mre;
+---------------------+-------------------------+
| id | field |
+---------------------+-------------------------+
| 1227966080878641153 | {"value":"HelloWorld"} |
+---------------------+-------------------------+
> ^C
root@dev:/workdir# curl "0:9308/sql?mode=raw" -d "select * from mre;"
[{
"columns":[{"id":{"type":"long long"}},{"field":{"type":"string"}}],
"data":[
{"id":1227966080878641153,"field":"{\"value\":\"Hello\nWorld\"}"}
],
"total":1,
"error":"",
"warning":""
}]root@dev:/workdir#
Bug Description:
It seems that at some point, we changed our JSON encoding/decoding scheme, which led to different behavior. Previously, we showed
\\n
, but now we have\n
, which causes issues with JSON-in-JSON encoding.Expected:
We can see that
\n
becomes\\n
as it's properly escapedManticore Search Version:
Latest dev version
Operating System Version:
Ubuntu Jammy
Have you tried the latest development version?
None
Internal Checklist:
To be completed by the assignee. Check off tasks that have been completed or are not applicable.
The text was updated successfully, but these errors were encountered: