From d3e10710d22b35889fe3951df929d21d9139cd3e Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Fri, 25 Sep 2009 00:47:33 +0000 Subject: [PATCH] Whitespace tweak. --- src/java/com/samskivert/depot/impl/PostgreSQL4Builder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/samskivert/depot/impl/PostgreSQL4Builder.java b/src/java/com/samskivert/depot/impl/PostgreSQL4Builder.java index 7404c18..2069a7f 100644 --- a/src/java/com/samskivert/depot/impl/PostgreSQL4Builder.java +++ b/src/java/com/samskivert/depot/impl/PostgreSQL4Builder.java @@ -60,6 +60,8 @@ public class PostgreSQL4Builder extends PostgreSQLBuilder Object testValue = values[0]; if (testValue instanceof Integer) { type = "integer"; + } else if (testValue instanceof Long) { + type = "bigint"; } else if (testValue instanceof String) { type = "varchar"; } else if (testValue instanceof ByteEnum) { @@ -71,8 +73,6 @@ 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());