-
-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixed bug creating table when model has no columns
If you wanted to create a table using only the ColumnExpr function and not provide columns from the struct model. Then you would receive syntax errors as the ColumnExpr columns always have a `,` prepended before them even if no columns were appended before them. This makes sure that the `,` is properly prepended before adding columns from the ColumnExpr. It also evaluates the AUTO_INCREMENT feature from the provided formatter dialect rather than the DB. This will make testing the AppendQuery method easier in the future as the library evolves as it this method is now _slightly_ less dependent on a DB connection to be called.
- Loading branch information
1 parent
9a44f93
commit 042c50b
Showing
2 changed files
with
60 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters