sunjiabo
sunjiabo
This is a clerical error. The problem has been solved. https://github.com/sharding-sphere/sharding-sphere/issues/1156 https://www.cnblogs.com/Fly-Bob/p/7218006.html
mybatis \ insert into message_new (mq_id, .... send_time, consume_time, create_time) values (#{mqId,jdbcType=VARCHAR}, ... #{sendTime,jdbcType=TIMESTAMP}, #{consumeTime,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{hostip,jdbcType=VARCHAR}) \ \ mysql insert actual id is 237162384471687168 but, mybatis return MessageNew.id is...
I use the my custom ID generator algorithm is correct, for example timestamp. but, use snowflake the return id is incorrect.
I inserted only one row of data. My algorithmExpression is only take the current timestamp, the retured MessageNew.id is equals to the id in mysql table. If use DefaultKeyGenerator or...
select * from message_new where id=237162384471687170 empty in other tables,only insert to message_new_201808. Is there any problem with your test?
I discovered the cause of the problem. This is a bug of Jsckson. Cannot convert long value correct,if the value is logger than 16 digit. Thank you for your answer...