-
Notifications
You must be signed in to change notification settings - Fork 71
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
No way to pass types with spaces using data Values a
#250
Comments
This specific case is actually mentioned in the documentation for Values (emphasis mine):
|
Why not generate correct SQL instead? =) |
What's not correct about the SQL being generated? You do understand what the double quotes are for, right? |
It’s not correct for types with spaces, is it? Are they for SQLi prevention? How would I introduce one, hmmm; I’d have to pass a string from a user in this |
The situation around quoting and escaping seems to be a bit messy and ad hoc at the moment, unfortunately :(. |
If I do:
The following happens in run-time:
The same error is achievable in PostgreSQL by running:
which results in:
A version without quotes works correctly:
A workaround is to use a short form,
timestamptz
, instead oftimestamp with time zone
. But this might not be available for other types.The text was updated successfully, but these errors were encountered: