Patch from Nathan to support longs.

This commit is contained in:
Andrzej Kapolka
2009-09-25 00:41:18 +00:00
parent 4a552b29bc
commit e2d4269516
@@ -71,6 +71,8 @@ public class PostgreSQL4Builder extends PostgreSQLBuilder
type = "smallint"; // tinyint is in the spec, but PG doesn't recognize?
} else if (testValue instanceof Timestamp) {
type = "timestamp";
} else if (testValue instanceof Long) {
                       type = "bigint";
} else {
throw new DatabaseException(
"Don't know how to make Postgres array for " + testValue.getClass());