[CONJ-279] Statement#setFetchSize causes infinite loop Created: 2016-04-14 Updated: 2016-04-22 Resolved: 2016-04-22 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 1.4.2 |
| Fix Version/s: | 1.4.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Martin Keller | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
MariaDB Server 10.0.22 on FreeBSD 10.3 |
||
| Attachments: |
|
| Description |
|
Using Statement setFetchSize causes ResultSet#getNext to return always true. Statement stmt; stmt = null; stmt = conn.createStatement(); stmt.execute("DROP TABLE IF EXISTS TEST"); stmt.execute("INSERT INTO TEST VALUES(1, 'test1')"); rs = stmt.executeQuery("SELECT MYID, MYTEXT FROM TEST"); while (rs.next()) { System.out.println(rs.getString(2)); }rs.close(); stmt.execute("DROP TABLE TEST"); stmt.close(); |
| Comments |
| Comment by Diego Dupin [ 2016-04-14 ] |
|
Hi. That was the case for 1.4.1, i will let you confirm this, but this has been corrected in 1.4.2. |
| Comment by Martin Keller [ 2016-04-14 ] |
|
Hi Diego, |
| Comment by Diego Dupin [ 2016-04-14 ] |
|
You're right ! the mariadb-java-client-1.4.2.tar.gz link file correspond to the 1.4.1 version. |
| Comment by Martin Keller [ 2016-04-14 ] |
|
Thank you! It works perfectly now. |
| Comment by Diego Dupin [ 2016-04-22 ] |
|
i just verified, the link is updated |