johnny2002 opened a new issue #6451:
URL: https://github.com/apache/shardingsphere/issues/6451


   ## Bug Report
   
   I have an mysql SQL like:
   INSERT INTO tab_user
    (id, name, sex, age, create_time, update_time, status)
   VALUES(3, 'test', 'F', 30, DATE_ADD(now(),INTERVAL 2 DAY), 
DATE_ADD(now(),INTERVAL 2 DAY), '1');
   
   After sharding-sphere parsor, it become:
   INSERT INTO tab_user0
   (id, name, sex, age, create_time, update_time, status)
   VALUES(3, 'test', 'F', 30, DATE_ADD(now(),INTERVAL2DAY), 
DATE_ADD(now(),INTERVAL2DAY), '1');
   
   Which removed spaces in "INTERVAL  2  DAY", caused the sql exception.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to