From 8670d0e1095c0995d34647b6076890f79b034dbe Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 16 Feb 2011 02:13:35 +0000 Subject: [PATCH] Support creation of arrays of stock enum values (which are turned into strings). From Jamie. --- src/main/java/com/samskivert/depot/impl/PostgreSQL4Builder.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/samskivert/depot/impl/PostgreSQL4Builder.java b/src/main/java/com/samskivert/depot/impl/PostgreSQL4Builder.java index 90c9f4b..97b28cc 100644 --- a/src/main/java/com/samskivert/depot/impl/PostgreSQL4Builder.java +++ b/src/main/java/com/samskivert/depot/impl/PostgreSQL4Builder.java @@ -74,6 +74,8 @@ public class PostgreSQL4Builder extends PostgreSQLBuilder } values = bytes; type = "smallint"; // tinyint is in the spec, but PG doesn't recognize? + } else if (testValue instanceof Enum) { + type = "varchar"; } else if (testValue instanceof Timestamp) { type = "timestamp"; } else if (testValue instanceof Date) {