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

add unit test for batch issues #1991

Closed
wants to merge 3 commits into from
Closed

Conversation

hgschmie
Copy link
Contributor

@hgschmie hgschmie commented Jan 7, 2022

all of these tests should pass. But they don't. They fail with exotic errors such as

org.jdbi.v3.core.statement.UnableToCreateStatementException: No argument factory registered for 'User:2' of qualified type org.jdbi.v3.core.argument.ObjectArgument [statement:"INSERT INTO something (id, name) VALUES(:id, :name)", arguments:{positional:{}, named:{name:User:2,id:2}, finder:[]}]
        at org.jdbi.v3.core.statement.TestBatchProblems.testNonUniformBatchInsertsWithArguments(TestBatchProblems.java:136)
java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Integer (java.lang.String and java.lang.Integer are in module java.base of loader 'bootstrap')
        at org.jdbi.v3.core.statement.TestBatchProblems.testNonUniformBatchInserts(TestBatchProblems.java:113)```

@hgschmie
Copy link
Contributor Author

Closing, still tracked in #2390.

@hgschmie hgschmie closed this Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant