Skip to content

Commit

Permalink
0000021: Add support for SQlite over JDBC
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanes committed Nov 20, 2012
1 parent 6cc860c commit 81b8e90
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -825,8 +825,15 @@ public void syncUpdateWithEmptyKey() {
new Object[] { 2, "00001", "" });
clientPush();

int status = getServer().getSqlTemplate().queryForInt(selectStoreStatusSql,
int status =-1;

if (getClient().getSymmetricDialect().getPlatform().getDatabaseInfo().isBlankCharColumnSpacePadded()) {
status = getServer().getSqlTemplate().queryForInt(selectStoreStatusSql,
new Object[] { "00001", " " });
} else {
status = getServer().getSqlTemplate().queryForInt(selectStoreStatusSql,
new Object[] { "00001", "" });
}

Assert.assertEquals("Wrong store status", 2, status);
} finally {
Expand Down

0 comments on commit 81b8e90

Please sign in to comment.