Column Names clash with SQL Types #5031
Gameboard-dev
started this conversation in
Ideas
Replies: 1 comment
-
|
We already have a built-in mechanism for handling such collisions: https://github.com/diesel-rs/diesel/blob/main/diesel_cli/src/infer_schema_internals/inference.rs#L13 So it would be simple to add more cases there. We are happy to review a PR for that. I still would like to see an example what exactly fails with an error message. Maybe it also needs to be fixed somewhere else. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Backend
PostgreSQL
What do you want to add to diesel?
Column names "Date", "Time" and possibly "Type" should be prefixed by diesel with i.e., r# to avoid namespace clashing. These are valid columns in some databases.
Implementation notes
No response
Additional details
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions