我收到以下clojure / HoneySql代码的BatchUpdateException
(def valmaparr [{:col_1 1,
:col_2 "r5-0393OPE102FLe",
:col_3 "PASSED"}
{:col_1 1,
:col_2 "r5-04vEGEGsHOrv6",
:col_3 "PASSED"}])
(defn insert-into-table [valmaparr]
(-> (insert-into :some-table)
(values valmaparr)
(sql/format)
))
以上代码生成查询
["INSERT INTO some-table (col_1, col_2, col_3) VALUES (?, ?, ?), (?, ?, ?)"
1
"val1"
"PASSED"
1
"val2"
"PASSED"]
但是当我执行查询时
我得到了例外
BatchUpdateException ORA-00933: SQL command not properly ended
oracle.jdbc.driver.OraclePreparedStatement.executeBatch (OraclePreparedStatement.java:10500)