shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

mysql insert decimal error

Open michaeljinxq opened this issue 7 years ago • 1 comments

sharding proxy version https://dist.apache.org/repos/dist/dev/incubator/shardingsphere/4.0.0-RC1/apache-shardingsphere-incubating-4.0.0-RC1-sharding-proxy-bin.tar.gz

(1) create table tbname1 (id int primary key,key_price decimal(16,2) DEFAULT NULL);

(2) mysql> INSERT INTO tbname1 VALUES (1,13.00); ERROR 10002 (C1000): 2Unknown exception: [For input string: "13.00"]

thanks

michaeljinxq avatar Apr 15 '19 11:04 michaeljinxq

it could not convert double string value to number, it must convert to double

codefairy08 avatar Apr 16 '19 07:04 codefairy08