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,9 +61,11 @@ public class TSDBPreparedStatement extends TSDBStatement implements PreparedStat
this.isPrepared = true; this.isPrepared = true;
} }
// the table name is also a parameter, so ignore it. if (parameterCnt > 1) {
this.colData = new ArrayList<ColumnInfo>(parameterCnt - 1); // the table name is also a parameter, so ignore it.
this.colData.addAll(Collections.nCopies(parameterCnt - 1, null)); this.colData = new ArrayList<ColumnInfo>(parameterCnt - 1);
this.colData.addAll(Collections.nCopies(parameterCnt - 1, null));
}
} }
private void init(String sql) { private void init(String sql) {