java/sql-dk/src/info/globalcode/sql/dk/SQLCommandNamed.java
branchv_0
changeset 68 574cd7fbb5b2
parent 61 deba1f6600f8
child 78 d98f33d91553
equal deleted inserted replaced
67:10c9b9e54622 68:574cd7fbb5b2
    66 
    66 
    67 	@Override
    67 	@Override
    68 	public void parametrize(PreparedStatement ps) throws SQLException {
    68 	public void parametrize(PreparedStatement ps) throws SQLException {
    69 		int i = 1;
    69 		int i = 1;
    70 		for (Parameter p : notNull(parametersUsed)) {
    70 		for (Parameter p : notNull(parametersUsed)) {
    71 			ps.setObject(i++, p.getValue(), p.getType());
    71 			ps.setObject(i++, p.getValue(), p.getType().getCode());
    72 		}
    72 		}
    73 	}
    73 	}
    74 
    74 
    75 	/**
    75 	/**
    76 	 * Builds a regexp pattern that matches all parameter names (with prefix/suffix) and which has
    76 	 * Builds a regexp pattern that matches all parameter names (with prefix/suffix) and which has