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

Calling AbstractVertxDAO.insert(Collection<?>) causes insert of 'null' values which results in error #223

Open
Dudeplayz opened this issue Apr 18, 2023 · 0 comments

Comments

@Dudeplayz
Copy link

When calling insert with a Collection causes the generation of e.g. INSERT INTO ... VALUES (null, a, b, c), the first column is an identity column, which results in a SQL error. If I loop through the collection and insert every value alone, it generates correctly INSERT INTO ... VALUES (a, b, c).

I think the issue comes from the referenced line, where after newRecord(dslContext, pojo) intoArray() is called. This intoArray call is for the single insert missing.

insertValuesStepN = insertSetStep.values(newRecord(dslContext, pojo).intoArray());

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