shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

Can not execute DML in proxy where contain now() function

Open michaeljinxq opened this issue 7 years ago • 2 comments

mysql> insert into my_orders(name,create_time,age,ttt,dc) values('ruiaylin1', '2019-04-16 18:00:00', null,now(), 14.56) ; ERROR 1292 (22001): Data truncation: Incorrect datetime value: 'now()' for column 'ttt' at row 1

Actual SQL: online_ds ::: insert into my_orders_201904 (name, create_time, age, ttt, dc) VALUES ('ruiaylin1', '2019-04-16 18:00:00', null, 'now()', 14.56) [INFO ] 09:42:23.927 [ShardingSphere-Command-1] ShardingSphere-SQL -

michaeljinxq avatar Apr 18 '19 01:04 michaeljinxq

duplicate with #1497

terrymanu avatar Apr 18 '19 03:04 terrymanu

Is this problem fixed?

xiaoyuge avatar Jul 09 '24 08:07 xiaoyuge