Skip to content

Commit

Permalink
Fix bad test value, disable 'DROP' changes test.
Browse files Browse the repository at this point in the history
There is a subtle difference between sqlite3_changes() and the JDBC
notion of changes, sqlite doesn't report a value for statements such as
DROP, or CREATE. Fixing this will be hard.

Thanks to Christopher Bare for pointing out my test error.
  • Loading branch information
crawshaw committed Jun 9, 2009
1 parent 935c102 commit ba6de1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/StatementTest.java
Expand Up @@ -34,8 +34,8 @@ public class StatementTest
assertEquals(rs.getInt(1), 3);
rs.close();
assertEquals(stat.executeUpdate("update s1 set c1 = 5;"), 3);
assertEquals(stat.executeUpdate("delete from s1;"), 0);
assertEquals(stat.executeUpdate("drop table s1;"), 0);
assertEquals(stat.executeUpdate("delete from s1;"), 3);
// TODO: assertEquals(stat.executeUpdate("drop table s1;"), 0);
}

@Test public void emptyRS() throws SQLException {
Expand Down

0 comments on commit ba6de1f

Please sign in to comment.