This commit is contained in:
dapan1121 2021-05-11 18:59:51 +08:00
parent c8ff286cbe
commit ace482e293
1 changed files with 6 additions and 4 deletions

View File

@ -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;