Skip to content

Commit

Permalink
sql codes can be negative as well as positive according to hsqldb.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Apr 14, 2008
1 parent 6413d6c commit a327f10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void testSqlStatistics() throws Exception {
Assert.assertEquals(history.getFallbackUpdateCount(), 0, "Wrong fallback update count");
Assert.assertEquals(history.getMissingDeleteCount(), 0, "Wrong missing delete count");
Assert.assertNotNull(history.getSqlState(), "Sql state should not be null");
Assert.assertTrue(history.getSqlCode() > 0, "Sql code should not be zero");
Assert.assertTrue(history.getSqlCode() != 0, "Sql code should not be zero");
Assert.assertNotNull(history.getSqlMessage(), "Sql message should not be null");
}

Expand Down

0 comments on commit a327f10

Please sign in to comment.