这是我的代码:
(defn tbl_email_data
{:new-acc 1
:email "test_get_account_3@mode-test.co"
:token "pa55P0rt"})
(defn create-online-test-data[data_values]
(with-connection
(with-transaction []
;Insert tbl_email
(execute-sql (format "Insert into tbl_email (email, acc_no, pass) values ('%s', %d, '%s')" data_values :email data_values :new-acc data_values :token))
)))
尝试运行它时,我收到以下错误:
com.mode.test.core.testOnline=> (create-online-test-data tbl_email_data)
java.lang.Exception: 事务回滚: d != clojure.lang.Keyword (NO_SOURCE_FILE:0)