Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Duplicate
-
10.1.23, 10.1(EOL), 10.2(EOL)
-
None
-
Linux
Description
The JSON spec wants all newline characters encoded as "\n", COLUMN_JSON fails to encode newline characters properly.
Minimal test case:
SELECT COLUMN_JSON(COLUMN_CREATE("foo", "New |
line" AS CHAR)); |
Current output:
{"foo":"New |
line"}
|
Expected output:
{"foo":"New\nline"} |
Attachments
Issue Links
- is duplicated by
-
MDEV-7533 COLUMN_JSON() doesn't escape control characters in string values
- Closed