提交 ace482e2 编写于 作者: D dapan1121

fix bug

上级 c8ff286c
...@@ -61,10 +61,12 @@ public class TSDBPreparedStatement extends TSDBStatement implements PreparedStat ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册