Skip to content
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

Using reserved words as column name #432

Open
hamishjohnson opened this issue May 30, 2023 · 2 comments
Open

Using reserved words as column name #432

hamishjohnson opened this issue May 30, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@hamishjohnson
Copy link

This has already been reported and closed elsewhere

supabase/supabase#12539

The solution was to update documentation but I think, if possible, a better solution would be to add this to the runtime error message, as it's not easy or intuitive to find in the documentation, and if it was directly in the error message I would have easily avoided many hours of troubleshooting.

@hamishjohnson hamishjohnson added the bug Something isn't working label May 30, 2023
@saltcod saltcod transferred this issue from supabase/supabase May 30, 2023
@steve-chavez
Copy link
Member

Q: Is your column named "order"?

Regardless of whether we can err(which I'm not opposed to), that could be trouble when using it inside a SQL query. You would have to quote "order" everywhere.

@hamishjohnson
Copy link
Author

Yeah, exactly - I was using order. The point of this PR is just that I couldn't understand why for a long time, and the documentation is not clear on it. I think an error message would make this a lot clearer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants