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

Flushing a new entity fails with an exception #761

Closed
mpe85 opened this issue Jan 7, 2020 · 0 comments
Closed

Flushing a new entity fails with an exception #761

mpe85 opened this issue Jan 7, 2020 · 0 comments

Comments

@mpe85
Copy link
Contributor

mpe85 commented Jan 7, 2020

When flushing a newly created entity there is an exception raised. Happens after upgrade to 0.20.2 (Works in 0.17.7).

Can't add a new batch because columns: STRINGS.TEXT don't have default values. DB defaults don't support in batch inserts
org.jetbrains.exposed.sql.statements.BatchDataInconsistentException: Can't add a new batch because columns: STRINGS.TEXT don't have default values. DB defaults don't support in batch inserts
	at org.jetbrains.exposed.sql.statements.BatchInsertStatement.validateLastBatch$exposed_core(BatchInsertStatement.kt:56)

I added a test that shows the problem in this PR: #760

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

2 participants