From e2d4269516fafe32f966ffa1efe7ead28d5070ab Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Fri, 25 Sep 2009 00:41:18 +0000 Subject: [PATCH] Patch from Nathan to support longs. --- src/java/com/samskivert/depot/impl/PostgreSQL4Builder.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/java/com/samskivert/depot/impl/PostgreSQL4Builder.java b/src/java/com/samskivert/depot/impl/PostgreSQL4Builder.java index 58663e2..7404c18 100644 --- a/src/java/com/samskivert/depot/impl/PostgreSQL4Builder.java +++ b/src/java/com/samskivert/depot/impl/PostgreSQL4Builder.java @@ -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());