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

better detection/extraction of existing sequences in H2 #505

Merged
merged 1 commit into from
Jan 15, 2014

Conversation

darkv
Copy link
Member

@darkv darkv commented Nov 5, 2013

When EOF needs to generate new primary keys it uses sequences that follow a certain naming schema. If that sequence has not yet been created by EOF it will first check if there is already a sequence it can use before creating its own.

Instead of extracting the name of an existing sequences from the SQL expression stored in the information schema get it directly from the SEQUENCE_NAME field or alternatively extract it from the column with the default value definition.

darkv added a commit that referenced this pull request Jan 15, 2014
better detection/extraction of existing sequences in H2
@darkv darkv merged commit 0bb0f01 into wocommunity:master Jan 15, 2014
@darkv darkv deleted the h2_sequences_patch branch January 16, 2014 09:28
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.

1 participant