Whitespace tweak.
This commit is contained in:
@@ -60,6 +60,8 @@ public class PostgreSQL4Builder extends PostgreSQLBuilder
|
|||||||
Object testValue = values[0];
|
Object testValue = values[0];
|
||||||
if (testValue instanceof Integer) {
|
if (testValue instanceof Integer) {
|
||||||
type = "integer";
|
type = "integer";
|
||||||
|
} else if (testValue instanceof Long) {
|
||||||
|
type = "bigint";
|
||||||
} else if (testValue instanceof String) {
|
} else if (testValue instanceof String) {
|
||||||
type = "varchar";
|
type = "varchar";
|
||||||
} else if (testValue instanceof ByteEnum) {
|
} 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?
|
type = "smallint"; // tinyint is in the spec, but PG doesn't recognize?
|
||||||
} else if (testValue instanceof Timestamp) {
|
} else if (testValue instanceof Timestamp) {
|
||||||
type = "timestamp";
|
type = "timestamp";
|
||||||
} else if (testValue instanceof Long) {
|
|
||||||
type = "bigint";
|
|
||||||
} else {
|
} else {
|
||||||
throw new DatabaseException(
|
throw new DatabaseException(
|
||||||
"Don't know how to make Postgres array for " + testValue.getClass());
|
"Don't know how to make Postgres array for " + testValue.getClass());
|
||||||
|
|||||||
Reference in New Issue
Block a user