-
Notifications
You must be signed in to change notification settings - Fork 286
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
Select with list of fields from an array doesn't work with fields including a dot #188
Comments
Are you trying to select the key |
No, I'm trying to select the id column from the projects table. So just using the explicit syntax where you specify the table name also. |
In theory useful for: |
Ah right, of course 👍 There should definitely be a way to do that.. If we make it work as you tried there we'd break anyone with periods in their column names, but I kind of feel that's ok? |
I would assume the problem is sql injection but I don't know. The correct way to do this with arbitrary names (excluding ones containing a dot) is I would assume that a dot is such a strange thing in a column name that it should be fine. Should still be noted in the release notes of course. |
I don't need this feature currently so if nobody else needs it it may be worth to wait until the dynamic queries feature is more finished and maybe it's then built in there |
I would very much like to see this implemented, as would #731. Is there a workaround? |
Code similar to the following doesn't work:
because this generates:
which is not valid for postgresql
The text was updated successfully, but these errors were encountered: