提交 ace482e2 编写于 作者: D dapan1121

fix bug

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