-
Notifications
You must be signed in to change notification settings - Fork 231
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
Exposing prepared statement fetch size parameter #311
base: master
Are you sure you want to change the base?
Conversation
I'm having some trouble with the test coverage. There is not a lot of added code here to test, so initially I added some small additions to a couple existing tests, then tried adding a whole new test to see if that made the test coverage happy. Even only adding a What exactly am I doing wrong with the test coverage, or is this expected? |
Relevant to issue #299.
This exposes the fetch size parameter on the prepared statement. This is needed for Postgres connections for large data sets, or any connection that does not set a fetch size by default, so that the connection does not attempt to bring back all the data in one giant payload.
https://jdbc.postgresql.org/documentation/head/query.html
I also fixed the tests around reflection. The test coverage library seems to inject synthetic fields in all Java classes for measurements. All that needed to be done was filter out the synthetic fields in the reflection unit tests.
I also added a unit test around my change.