Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.2.29, 10.5.12
-
None
-
[DB]
MariaDB 10.2.29
MariaDB 10.5.12
[Development]
JAVA 1.7
Mybatis
Framework spring
mysql-connector-java-5.1.43-bin.jar
Description
[Problem]
In JAVA, the BOX_CNT column of MariaDB 10.2.29 is returned as a long.
In JAVA, the BOX_CNT column of MariaDB 10.5.12 is returned as an integer.
Different versions have different return types, which causes casting problems.
What is causing the problem?
[DDL]
CREATE TABLE `tb_order_item_distbox` (
`ORDER_ITEM_SEQ` bigint(20) NOT NULL COMMENT '',
`BOX_SEQ` bigint(20) NOT NULL COMMENT '',
`ORDER_KG` double(11,2) NOT NULL COMMENT '',
`FIX_KG` double(11,2) DEFAULT NULL COMMENT '',
`BOX_CNT` int(11) DEFAULT 1 COMMENT '',
PRIMARY KEY (`ORDER_ITEM_SEQ`,`BOX_SEQ`),
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='';
[Read Query]
SELECT A.order_item_seq
, A.box_seq
, ifnull(A.box_cnt, 0) box_cnt
FROM tb_order_item_distbox A