-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Querying JSON columns with the special symbols #505
Labels
Comments
Thanks for the report. I can reproduce: curl 'localhost:3000/bets?data_json->@type=eq.4'
{"code":"PGRST100","details":"unexpected \"@\" expecting \"-\", digit or field name (* or [a..z0..9_$])","hint":null,"message":"\"failed to parse tree path (data_json->@type)\" (line 1, column 12)"} |
As a workaround, you could do:
I've confirmed this works:
|
Wrapping the key in quotations seems to work: curl "http://localhost:3000/jsonvals?a->>\"@key\"=eq.1" [{"@key":"1"}] Doing this should work as another workaround: .eq('media3Id->data->>schemaOrg2->>"@type"', schemaPrefix) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug report
Describe the bug
Hi! We are trying to query the data from our jsonb column that has a special symbol @.
We are following the recommended spec by schema-dts
This is an example of code snippet we run:
This is the result that we see
Is there anything that we are missing?
To Reproduce
The text was updated successfully, but these errors were encountered: