Hibernate一映射問題

當Mysql 5.0表數據類型設計爲DECIMAL時,在spring,hibernate項目運行會出現246錯誤:
Unknown type '246 in column 4 of 11 in binary-encoded result set.; nested exception is java.sql.SQLException: Unknown type '246 in column 4 of 11 in binary-encoded result set.

剛開始還以爲是程序有問題,後來才知道MYSQL5在decimal 類型有BUG,解決方法是更改數據類型。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章