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/single-column-updates #22

Merged

Conversation

MiguelMJ
Copy link
Contributor

Currently, all updates follow the format:

UPDATE table SET (columnA, columnB) = (?, ?)

but single column updates like this one:

UPDATE table SET (columnA) = (?)

raise SQL syntax errors.

Example from PostgreSQL:

ERROR: source for a multiple-column UPDATE item must be a sub-SELECT or ROW() expression

So I added a check to avoid parenthesis in single column updates.

@alejandropg alejandropg reopened this Aug 11, 2024
@alejandropg alejandropg enabled auto-merge (rebase) August 11, 2024 09:47
@alejandropg alejandropg merged commit ec9ee8c into archimedes-projects:main Aug 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants