Skip to content

Commit

Permalink
changed test_very_long_table_name_1234 to have a varchar id to enable…
Browse files Browse the repository at this point in the history
… test to run on derby
  • Loading branch information
chenson42 committed Jan 10, 2008
1 parent 26b2f10 commit 85b8c1d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -228,9 +228,9 @@ protected void testHeartbeat() throws Exception {
}

protected void testVirtualTransactionId() {
rootJdbcTemplate.update("insert into test_very_long_table_name_1234 values(42)");
rootJdbcTemplate.update("insert into test_very_long_table_name_1234 values('42')");
Assert.assertEquals(rootJdbcTemplate.queryForObject("select transaction_id from sym_data where data_id in (select max(data_id) from sym_data)", String.class), "42", "The hardcoded transaction id was not found.");
Assert.assertEquals(rootJdbcTemplate.update("delete from test_very_long_table_name_1234 where id=42"), 1);
Assert.assertEquals(rootJdbcTemplate.update("delete from test_very_long_table_name_1234 where id='42'"), 1);
Assert.assertEquals(rootJdbcTemplate.queryForObject("select transaction_id from sym_data where data_id in (select max(data_id) from sym_data)", String.class), "42", "The hardcoded transaction id was not found.");
}

Expand Down

0 comments on commit 85b8c1d

Please sign in to comment.