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
Support of column identifiers with "special" characters #462
Comments
PostgREST quotes all identifiers, even the ones which don't need it. The problem is with the PostgREST |
Here's the specific line which only allows letters, numbers and |
@ruslantalpa I tried fixing this, but it requires a little more parser work that I'm not able to do. When I add |
see if this works
|
I think you should really try to implement quoting within the select parameter. It's only a matter of time until somebody with a comma or -> in a column name would show up... |
Anyone want to push this over the finish line and send a PR? |
I created a failing test to demonstrate the problem on branch |
@SebAlbert Good point. |
Related to #1008. |
I have column name "nic-hdl" in my table. When I make request to all columns (http://localhost:3000/person) - I receive answer as expected. But if I'm trying to specify this column in select (http://localhost:3000/person?select=nic-hdl), than I get an error:
HTTP/1.1 400 Bad Request
...
{"details":"unexpected "h" expecting "->>"","message":""failed to parse select parameter <>" (line 1, column 4)"}
It will be good if there will be a way to quote identifiers. Postgres allows to use such identifiers by quoting them with double qoutes "".
The text was updated successfully, but these errors were encountered: