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:
Michael Bayne
2009-04-27 22:48:14 +00:00
parent cbde87c6a2
commit 825b15d5f7
@@ -53,7 +53,7 @@ public class PostgreSQL4Builder extends PostgreSQLBuilder
if (value instanceof Integer) {
return "integer";
} else if (value instanceof String) {
return "character varying";
return "varchar";
} else {
throw new DatabaseException(
"Don't know how to make Postgres array for " + value.getClass());