今天用hsqldb做單元測試時碰到這么個異常
failed batch; nested exception is java.sql.BatchUpdateException: failed batch
經過檢查發現是HSQLDB的問題
The bug is in HSQLDB - a well known one (any Google search for HSQLDB and that "failed batch"
message would have told you it).
https://sourceforge.net/tracker/?func=detail&atid=378131&aid=1407528&group_id=23316
解決方法 : turn off batching with HSQLDB it doesnt work.
設置<prop key="hibernate.jdbc.batch_size">0</prop>即可
http://www.tkk7.com/ronghao 榮浩原創,轉載請注明出處:)
posted on 2008-05-30 18:40
ronghao 閱讀(678)
評論(1) 編輯 收藏 所屬分類:
工作日志