Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Hsql: Support using DEFAULT for generated columns in Insert #3372

Merged
merged 1 commit into from
Jul 15, 2022
Merged

Hsql: Support using DEFAULT for generated columns in Insert #3372

merged 1 commit into from
Jul 15, 2022

Conversation

hfhbd
Copy link
Collaborator

@hfhbd hfhbd commented Jul 15, 2022

When you add a new row to such a table using an INSERT INTO <tablename> ... statement, you can use the DEFAULT keyword for the IDENTITY column, which results in an auto-generated value for the column.

https://www.hsqldb.org/doc/2.0/guide/databaseobjects-chapt.html

Workaround for #3370 to provide a value for generated column. Not needed with a new release of sql-psi :P

@AlecKazakova AlecKazakova merged commit af1e044 into sqldelight:master Jul 15, 2022
@hfhbd hfhbd deleted the h2Default branch July 15, 2022 12:26
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants