diff -r 10c9b9e54622 -r 574cd7fbb5b2 java/sql-dk/src/info/globalcode/sql/dk/SQLCommandNamed.java --- a/java/sql-dk/src/info/globalcode/sql/dk/SQLCommandNamed.java Thu Dec 26 01:53:15 2013 +0100 +++ b/java/sql-dk/src/info/globalcode/sql/dk/SQLCommandNamed.java Thu Dec 26 11:58:14 2013 +0100 @@ -68,7 +68,7 @@ public void parametrize(PreparedStatement ps) throws SQLException { int i = 1; for (Parameter p : notNull(parametersUsed)) { - ps.setObject(i++, p.getValue(), p.getType()); + ps.setObject(i++, p.getValue(), p.getType().getCode()); } }