[CONJ-550] Losing streaming ability in statement after executing Optimize Created: 2017-11-14 Updated: 2017-11-20 Resolved: 2017-11-15 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 2.1.1 |
| Fix Version/s: | 2.2.1, 1.7.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Rafael Lopez Fernández | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
When issuing a query that returns a lot of rows after issuing an Optimize or Analyze
I am not sure if the workaround is to change fetchSize reset in this two places: org.mariadb.jdbc.internal.com.read.dao.Results (303) loadFully methd:
and here also is reset org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol (1282) removeActiveStreamingResult() removes fetch size also in loadFully -> resultSet.fetchRemaining() |
| Comments |
| Comment by Diego Dupin [ 2017-11-15 ] | |||||||||||||||
|
workaround is to set "stmt.setFetchSize(1);" just before "final ResultSet rs = stmt.executeQuery("SELECT a from tmp.a");" Fetch size has been reset to 0 (=no fetch) when skipping previous streaming resultset, that will be corrected in next version. | |||||||||||||||
| Comment by Diego Dupin [ 2017-11-15 ] | |||||||||||||||
|
correction done.
|