Skip to content
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

Fix SQL generation when having a column defined with startWith and incrementBy in Postgres #5629

Merged
merged 1 commit into from Mar 12, 2024

Conversation

MalloD12
Copy link
Contributor

@MalloD12 MalloD12 commented Feb 26, 2024

Impact

  • Bug fix (non-breaking change which fixes expected existing functionality)
  • Enhancement/New feature (adds functionality without impacting existing logic)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

getAutoIncrementClause was returning a wrong SQL code when both incrementBy and startWith were defined for a column, an extra , was being added resulting in a SQL syntax error. This is a fix to that issue, updating an existent test for it and adding a new changeset with these two clauses together to be executed in a Postgres DB.

Fixes #4149

Things to be aware of

Things to worry about

Additional Context

…ns in postgres sql generation.

- Test updated.
- Integration test data added to validate this scenario.
@MalloD12 MalloD12 changed the title - Remove comma separator between startWith and incrementBy instructio… Fix SQL generation when having a column defined with startWith and incrementBy in Postgres Feb 26, 2024
@filipelautert filipelautert merged commit 0b9ff34 into master Mar 12, 2024
35 of 37 checks passed
@filipelautert filipelautert deleted the fix-issue-4149 branch March 12, 2024 11:21
@filipelautert filipelautert added this to the 1NEXT milestone Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

incrementBy and startWith column attributes produce incorrect autoincrement clause
3 participants