Commit ff2575d0 authored by Quxl's avatar Quxl

x

parent 40cae730
......@@ -531,7 +531,9 @@ public class JdbcTemplate extends org.springframework.jdbc.core.JdbcTemplate {
Integer index = i + 1;
Object arg = args[i];
if(arg != null && arg instanceof OutParameter) {
out.put(index, (OutParameter)arg);
OutParameter outArg = (OutParameter)arg;
out.put(index, outArg);
cs.registerOutParameter(index, outArg.getSqlType());
} else {
cs.setObject(index, arg);
}
......@@ -567,13 +569,13 @@ public class JdbcTemplate extends org.springframework.jdbc.core.JdbcTemplate {
}
public static class OutParameter {
private final int type;
private final int sqlType;
private Object value;
public OutParameter(int type) {
this.type = type;
public OutParameter(int sqlType) {
this.sqlType = sqlType;
}
public int getType() {
return type;
public int getSqlType() {
return sqlType;
}
public Object getValue() {
return value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment