fix bug
This commit is contained in:
parent
c8ff286cbe
commit
ace482e293
|
@ -61,10 +61,12 @@ public class TSDBPreparedStatement extends TSDBStatement implements PreparedStat
|
||||||
this.isPrepared = true;
|
this.isPrepared = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (parameterCnt > 1) {
|
||||||
// the table name is also a parameter, so ignore it.
|
// the table name is also a parameter, so ignore it.
|
||||||
this.colData = new ArrayList<ColumnInfo>(parameterCnt - 1);
|
this.colData = new ArrayList<ColumnInfo>(parameterCnt - 1);
|
||||||
this.colData.addAll(Collections.nCopies(parameterCnt - 1, null));
|
this.colData.addAll(Collections.nCopies(parameterCnt - 1, null));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void init(String sql) {
|
private void init(String sql) {
|
||||||
this.rawSql = sql;
|
this.rawSql = sql;
|
||||||
|
|
Loading…
Reference in New Issue