当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,解决方法是更改数据类型。
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,解决方法是更改数据类型。
使用Mysql5.0并设置表数据类型为DECIMAL时,在spring,hibernate项目中可能会遇到246错误。该错误源于MYSQL5中decimal类型的BUG。本文介绍了解决此问题的方法:更改数据类型。
1172

被折叠的 条评论
为什么被折叠?



