diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2015-05-30 16:53:58 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2015-05-30 17:32:51 +0200 |
commit | f9525cb4e8174a11da5624de3c271f5c40e5f0c5 (patch) | |
tree | 41676dfd0eb19a94581cc89ec8b71cde85571bdf | |
parent | d6d19acaca14d5b45ffb0db0028f17567d196c4d (diff) |
tweaks
Change-Id: I84ca5d1f3247d3ba3ed76bf3d39be14b47613703
-rw-r--r-- | dbaccess/qa/complex/dbaccess/RowSet.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dbaccess/qa/complex/dbaccess/RowSet.java b/dbaccess/qa/complex/dbaccess/RowSet.java index 22fe961c72b2..5ee5ea2456b3 100644 --- a/dbaccess/qa/complex/dbaccess/RowSet.java +++ b/dbaccess/qa/complex/dbaccess/RowSet.java @@ -86,10 +86,11 @@ public class RowSet extends TestCase public void run() { + int i=-1; try { m_resultSet.beforeFirst(); - for (int i = 0; m_resultSet.next(); ++i) + for (i = 0; m_resultSet.next(); ++i) { int pos = m_resultSet.getRow(); testPosition(m_resultSet, m_row, i + 1, "clone move(" + m_id + ")"); @@ -99,7 +100,7 @@ public class RowSet extends TestCase } catch (Exception e) { - fail("ResultSetMovementStress(" + m_id + ") failed: " + e); + fail("ResultSetMovementStress(" + m_id + ") failed at i=" + i + ": " + e); } } } @@ -122,7 +123,7 @@ public class RowSet extends TestCase try { - createStruture(); + createStructure(); } catch (SQLException e) { @@ -227,7 +228,7 @@ public class RowSet extends TestCase } - void createStruture() throws SQLException + void createStructure() throws SQLException { m_database.executeSQL("DROP TABLE \"TEST1\" IF EXISTS"); m_database.executeSQL("CREATE TABLE \"TEST1\" (\"ID\" integer not null primary key, \"col2\" varchar(50) )"); |