Kaydet (Commit) f9525cb4 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

tweaks

Change-Id: I84ca5d1f3247d3ba3ed76bf3d39be14b47613703
üst d6d19aca
...@@ -86,10 +86,11 @@ public class RowSet extends TestCase ...@@ -86,10 +86,11 @@ public class RowSet extends TestCase
public void run() public void run()
{ {
int i=-1;
try try
{ {
m_resultSet.beforeFirst(); m_resultSet.beforeFirst();
for (int i = 0; m_resultSet.next(); ++i) for (i = 0; m_resultSet.next(); ++i)
{ {
int pos = m_resultSet.getRow(); int pos = m_resultSet.getRow();
testPosition(m_resultSet, m_row, i + 1, "clone move(" + m_id + ")"); testPosition(m_resultSet, m_row, i + 1, "clone move(" + m_id + ")");
...@@ -99,7 +100,7 @@ public class RowSet extends TestCase ...@@ -99,7 +100,7 @@ public class RowSet extends TestCase
} }
catch (Exception e) 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 ...@@ -122,7 +123,7 @@ public class RowSet extends TestCase
try try
{ {
createStruture(); createStructure();
} }
catch (SQLException e) catch (SQLException e)
{ {
...@@ -227,7 +228,7 @@ public class RowSet extends TestCase ...@@ -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("DROP TABLE \"TEST1\" IF EXISTS");
m_database.executeSQL("CREATE TABLE \"TEST1\" (\"ID\" integer not null primary key, \"col2\" varchar(50) )"); m_database.executeSQL("CREATE TABLE \"TEST1\" (\"ID\" integer not null primary key, \"col2\" varchar(50) )");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment