-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
queryCusor() fails in streaming mode of MySQL Connector/J (fetchSize=Integer.MIN_VALUE) #1654
Comments
Thank you for the report, @YouUWd ! |
|
change the code like this works fine, but I'm not sure about any negative effects.
|
Please see #1297 . |
how can i keep the session open, it closed itself in SimpleExecutor @see org.apache.ibatis.binding.BoundBlogMapper#openRangeBlogs
then the test case failed, and change the datasource from derby to mysql, will get stack trace as you see. |
Could you share a complete project like these on GitHub please? |
|
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. |
…ize=Integer.MIN_VALUE) mybatis#1654
mybatisgh-1654 and https://bugs.mysql.com/bug.php?id=96786 MysqlContainer will be removed when/if the driver bug is fixed (and there is no other MySQL specific issue to test).
fix queryCusor() fails in streaming mode of MySQL Connector/J (fetchSize=Integer.MIN_VALUE) #1654 This is a workaround for https://bugs.mysql.com/bug.php?id=96786
…ize=Integer.MIN_VALUE) mybatis#1654
mybatisgh-1654 and https://bugs.mysql.com/bug.php?id=96786 MysqlContainer will be removed when/if the driver bug is fixed (and there is no other MySQL specific issue to test).
fix queryCusor() fails in streaming mode of MySQL Connector/J (fetchSize=Integer.MIN_VALUE) mybatis#1654 This is a workaround for https://bugs.mysql.com/bug.php?id=96786
MyBatis version
3.5.x
Database vendor and version
mysql mysql-connector-java-5.1.48
Test case or example project
Steps to reproduce
Expected result
data list
Actual result
cause by
commit-id: 8892890
org.apache.ibatis.executor.SimpleExecutor#doQueryCursor
line 74: stmt.closeOnCompletion();
The text was updated successfully, but these errors were encountered: