mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
sharding support
This commit is contained in:
@@ -32,12 +32,18 @@ public class JdbcParameter {
|
||||
private final Object value;
|
||||
private final long length;
|
||||
private final Calendar calendar;
|
||||
private final int scaleOrLength;
|
||||
|
||||
public JdbcParameter(int sqlType, Object value, long length, Calendar calendar){
|
||||
public JdbcParameter(int sqlType, Object value, long length, Calendar calendar, int scaleOrLength){
|
||||
this.sqlType = sqlType;
|
||||
this.value = value;
|
||||
this.length = length;
|
||||
this.calendar = calendar;
|
||||
this.scaleOrLength = scaleOrLength;
|
||||
}
|
||||
|
||||
public JdbcParameter(int sqlType, Object value, long length, Calendar calendar){
|
||||
this(sqlType, value, -1, null, -1);
|
||||
}
|
||||
|
||||
public JdbcParameter(int sqlType, Object value){
|
||||
@@ -52,6 +58,10 @@ public class JdbcParameter {
|
||||
this(sqlType, value, -1, calendar);
|
||||
}
|
||||
|
||||
public int getScaleOrLength() {
|
||||
return scaleOrLength;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user