當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,解決方法是更改數據類型。