Skip to content

Commit

Permalink
0003987: Add varbinary support for H2
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed May 31, 2019
1 parent fc654e7 commit 5d98314
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -167,13 +167,17 @@ protected Object appendVirtualTableStringValue(Object value, StringBuilder out)
}
out.append(escapeString(value));
out.append("'");

} else if (value instanceof Date) {
out.append("'");
synchronized (DATE_FORMATTER) {
out.append(DATE_FORMATTER.format(value));
}
out.append("'");
} else if (value instanceof byte[]) {
out.append("'");
value = convertBytesToString((byte[]) value, ((byte[]) value).length);
out.append(escapeString(value));
out.append("'");
} else {
throw new IllegalStateException(String.format("Type not supported: %s", value.getClass().getName()));
}
Expand Down

0 comments on commit 5d98314

Please sign in to comment.