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
{
"code": 400,
"details": "Request problems detected",
"description": "There is a problem with your request. Refer to the documentation for further information.",
"information": "There was a problem with the database: Parse error on line 1 at character 17 when parsing 'CONTENT {\"a\":\"b\\\\b\"}'"
}
Steps to reproduce
occurs when posting JSON data containing a string with a slash in it.
occurs when using the CLI SQL REPL
> surreal sql --conn http://localhost:8000 --user root --pass root --ns test --db test
> CREATE something CONTENT {"a":"b\\b"}
{"code":400,"details":"Request problems detected","description":"There is a problem with your request. Refer to the documentation for further information.","information":"There was a problem with the database: Parse error on line 1 at character 17 when parsing 'CONTENT {\"a\":\"b\\\\b\"}'"}
Expected behaviour
I expect the following strings to not raise a syntax error:
a\\b
a\nb
SurrealDB version
surreal 1.0.0-beta.7 for linux on x86_64
Contact Details
No response
Is there an existing issue for this?
I have searched the existing issues
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Describe the bug
Any slash in a string causes a syntax error.
Steps to reproduce
Expected behaviour
I expect the following strings to not raise a syntax error:
a\\b
a\nb
SurrealDB version
surreal 1.0.0-beta.7 for linux on x86_64
Contact Details
No response
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: