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

Sequences aren't supported as a default value for mariadb #16

Open
far-blue opened this issue Mar 28, 2024 · 0 comments
Open

Sequences aren't supported as a default value for mariadb #16

far-blue opened this issue Mar 28, 2024 · 0 comments

Comments

@far-blue
Copy link

When a sequence is used as the default value for a column, the NEXT VALUE FOR <sequence name> or nextval(<sequence name) string is used as a literal default value.

The correct behaviour would be to exclude the field from the insert if it is empty so to trigger the default value behaviour in the db.

A less correct but still acceptable behaviour would be to use the value as a raw value without quoting so the db executes the statement and correctly inserts the next sequence value.

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

No branches or pull requests

1 participant