-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Normalize double quoting across all operators #1943
Comments
In hindsight, maybe we should have resorted to escaping instead of double quoting. For example, on the select '{a,b,c}'::text[];
┌─────────┐
│ text │
├─────────┤
│ {a,b,c} │
└─────────┘
select '{a\,b,c}'::text[];
┌───────────┐
│ text │
├───────────┤
│ {"a,b",c} │
└───────────┘ |
For the problem with Adding a new operator would avoid a breaking change on |
I think we discussed elsewhere whether to maybe add an |
Yes, correct. Also, to cross link this issue, on #1970 (comment) we discussed a new |
With the above improvements to
Or we could enable backslash escaping for columns as well. |
Currently, we allow double quoting only on the
in
/and
/or
operators, this is inconsistent and is an issue for client-side libraries.Allowing double quotes on other operators would mean a breaking change though.
For example, right now the values for
eq
are free-form(eq."val"
would get SQL translated to= '"val"'
), if we allowed double quoting oneq
the quotes would get lost(eq."val"
would get SQL translated to= 'val'
).This was previously discussed on #1591 (comment).
Some problems with quoting:
The text was updated successfully, but these errors were encountered: