alibaba / cobar

a proxy for sharding databases and tables
Apache License 2.0
3.21k stars 1.22k forks source link

如果我在cobar中调用mysql 函数将日期转化为时间戳,也是会报错 #58

Open justlooks opened 9 years ago

justlooks commented 9 years ago

cobar 不支持mysql函数吗? mysql> create table myorder(id int auto_increment primary key,city_id int,place_tm int,name varchar(100));

mysql> insert into myorder (id, city_id, place_tm, name) values (1,10,UNIX_TIMESTAMP('2015-06-08 00:00:00'),'testme1'); ERROR 1003 (HY000): route err: different rule columns should have same value number: {PLACE_TM=[], CITY_ID=[10]}