Skip to content

Commit

Permalink
It is ok if triggers don't capture changes when no rows are updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Mar 16, 2010
1 parent d435aa5 commit eec2d19
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -573,7 +573,7 @@ public void testUpdateDataWithNoChangesSyncToClient() throws Exception {
int rowsUpdated = rootJdbcTemplate.update("update test_customer set address=address");
logger.info("Updated " + rowsUpdated + " customer rows");
getClientEngine().pull();
Assert.assertTrue(clientIncomingBatchCount < clientJdbcTemplate.queryForInt("select count(*) from sym_incoming_batch"));
Assert.assertTrue(clientIncomingBatchCount <= clientJdbcTemplate.queryForInt("select count(*) from sym_incoming_batch"));
Assert.assertEquals(0, clientJdbcTemplate.queryForInt("select count(*) from sym_incoming_batch where status != 'OK'"));
Assert.assertEquals(0, rootJdbcTemplate.queryForInt("select count(*) from sym_outgoing_batch where status not in ('OK','IG','SK')"));
Assert.assertEquals(rootJdbcTemplate.queryForInt("select count(*) from test_customer"), clientJdbcTemplate.queryForInt("select count(*) from test_customer"));
Expand Down

0 comments on commit eec2d19

Please sign in to comment.