Driver wants 'varchar' not 'character varying'. For future reference, these
mappings seem to be in appendix B of the JDBC specification.
This commit is contained in:
@@ -53,7 +53,7 @@ public class PostgreSQL4Builder extends PostgreSQLBuilder
|
|||||||
if (value instanceof Integer) {
|
if (value instanceof Integer) {
|
||||||
return "integer";
|
return "integer";
|
||||||
} else if (value instanceof String) {
|
} else if (value instanceof String) {
|
||||||
return "character varying";
|
return "varchar";
|
||||||
} else {
|
} else {
|
||||||
throw new DatabaseException(
|
throw new DatabaseException(
|
||||||
"Don't know how to make Postgres array for " + value.getClass());
|
"Don't know how to make Postgres array for " + value.getClass());
|
||||||
|
|||||||
Reference in New Issue
Block a user