With last night's patch to MultiKeySet, we'll be using a lot more IN() statements, and some of them contain shorts and bytes. Handle it.

This commit is contained in:
Par Winzell
2010-01-27 15:21:57 +00:00
parent c8eb3be297
commit f0c8d185f0
@@ -64,6 +64,8 @@ public class PostgreSQL4Builder extends PostgreSQLBuilder
type = "bigint";
} else if (testValue instanceof String) {
type = "varchar";
} else if (testValue instanceof Short || testValue instanceof Byte) {
type = "smallint";
} else if (testValue instanceof ByteEnum) {
Byte[] bytes = new Byte[values.length];
for (int ii = 0; ii < bytes.length; ii ++) {