Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
queryCusor() fails in streaming mode of MySQL Connector/J (fetchSize=Integer.MIN_VALUE) #1654
Database vendor and version
Test case or example project
Steps to reproduce
change the code like this works fine, but I'm not sure about any negative effects.
how can i keep the session open, it closed itself in SimpleExecutor
then the test case failed, and change the datasource from derby to mysql, will get stack trace as you see.
Thank you for the repro, @YouUWd !
Using your test, I tracked down the root cause and filed a bug report on Connector/J tracker.
Although it is a driver's bug, I think we can apply your suggested workaround because, as I mentioned in the above ticket, the spec clearly states that
So, are you keen to submit a PR?
If you are busy, it's totally fine. Please just let me know and I'll work on it when I have time.