Skip to content

Commit

Permalink
fix types used in SQL statements because postgres is picky about it
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Dec 9, 2007
1 parent b38bcfd commit 8b2086c
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -123,9 +123,10 @@ public void testSyncToRootAutoGeneratedPrimaryKey() {
}

@Test(groups = "integration", dependsOnMethods = "testSyncToClient")
public void testSyncToRoot() {
clientJdbcTemplate.update(insertOrderHeaderSql, new Object[] { "10", "100", null, "2007-01-03" });
clientJdbcTemplate.update(insertOrderDetailSql, new Object[] { "10", 1, "STK", "110000065", 3, "3.33" });
public void testSyncToRoot() throws ParseException {
Date date = DateUtils.parseDate("2007-01-03", new String[] { "yyyy-MM-dd" });
clientJdbcTemplate.update(insertOrderHeaderSql, new Object[] { "10", 100, null, date });
clientJdbcTemplate.update(insertOrderDetailSql, new Object[] { "10", 1, "STK", "110000065", 3, 3.33 });
clientEngine.push();
}

Expand Down

0 comments on commit 8b2086c

Please sign in to comment.