We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Generating the table definitions for tables with both sql_renames of reserved words and max lengths results in a schema.rs file that won't compile
generating a table with a migration like so creates an invalid table definition in schema.rs
schema.rs
CREATE TABLE `my_table` ( `id` char(36) NOT NULL, `type` varchar(50) NOT NULL, PRIMARY KEY (`id`) );
diesel::table! { my_table (id) { #[max_length = 36] id -> Char, #[sql_name = "type"] #[max_length = 50] type_ -> Varchar, } }
diesel::table! { offsets_bill (id) { #[max_length = 36] id -> Char, #[sql_name = "type", max_length = 50] type_ -> Varchar, } }
This causes
Invalid table!syntax. Please see thetable! macro docs for more info.
Invalid
syntax. Please see the
macro docs for more info.
The text was updated successfully, but these errors were encountered:
Duplicate of #3681
Sorry, something went wrong.
table!
No branches or pull requests
Versions
Feature Flags
Problem Description
Generating the table definitions for tables with both sql_renames of reserved words and max lengths results in a schema.rs file that won't compile
What are you trying to accomplish?
generating a table with a migration like so creates an invalid table definition in
schema.rs
What is the expected output?
What is the actual output?
Are you seeing any additional errors?
This causes
Invalid
table!syntax. Please see the
table!macro docs for more info.
Steps to reproduce
Checklist
closed if this is not the case)
The text was updated successfully, but these errors were encountered: