-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Range operators cannot be used inside or
without quoting
#3368
Comments
Did you try to quote the value instead?
|
Works! curl -g 'localhost:3000/ranges?or=(range.adj."(3,10]")&select=id'
[{"id":1}] I guess still a bug though. |
Huh? It works as designed. I really don't see the bug. |
Right, maybe this is just a matter of docs then. It would be nice to have a mention about this gotcha on https://postgrest.org/en/v12/references/api/tables_views.html#operators |
or
or
or
or
without quoting
I think it should be in the next section, so not operators, but logical operators: https://postgrest.org/en/v12/references/api/tables_views.html#logical-operators |
Maybe this is related and should be added to the docs too. From this discussion #3466 (comment):
The solution is to wrap the whole JSON array value inside quotations, (not just the items). That is: curl --globoff 'http://example.com/table?select=*&and=(column->jsonlist.cs."[\"foo=()\"]"' |
Problem
This works:
This doesn't:
Possible Solutions
SEARCH/QUERY
HTTP method to pass arguments in request body for read request #2125 (comment)The text was updated successfully, but these errors were encountered: