You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/07/26 12:43:35 UTC
[GitHub] [shardingsphere] johnny2002 opened a new issue #6451: Wrong SQL parse with "DATE_ADD" function
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:
users@infra.apache.org
[GitHub] [shardingsphere] johnny2002 commented on issue #6451: Wrong SQL parse with "DATE_ADD" function
Posted by GitBox <gi...@apache.org>.
johnny2002 commented on issue #6451:
URL: https://github.com/apache/shardingsphere/issues/6451#issuecomment-664138297
> which version did you use?
4.1.1
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [shardingsphere] kimmking commented on issue #6451: Wrong SQL parse with "DATE_ADD" function
Posted by GitBox <gi...@apache.org>.
kimmking commented on issue #6451:
URL: https://github.com/apache/shardingsphere/issues/6451#issuecomment-663991129
which version did you use?
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [shardingsphere] tristaZero commented on issue #6451: Wrong SQL parse with "DATE_ADD" function
Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #6451:
URL: https://github.com/apache/shardingsphere/issues/6451#issuecomment-664738762
Hi @johnny2002
Thanks for your feedback, we will fix it before our next release!
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [shardingsphere] tristaZero closed issue #6451: Wrong SQL parse with "DATE_ADD" function
Posted by GitBox <gi...@apache.org>.
tristaZero closed issue #6451:
URL: https://github.com/apache/shardingsphere/issues/6451
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [shardingsphere] jingshanglu commented on issue #6451: Wrong SQL parse with "DATE_ADD" function
Posted by GitBox <gi...@apache.org>.
jingshanglu commented on issue #6451:
URL: https://github.com/apache/shardingsphere/issues/6451#issuecomment-664109396
@tristaZero @johnny2002 Now, this is a bug, new version will fix it.
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [shardingsphere] tristaZero commented on issue #6451: Wrong SQL parse with "DATE_ADD" function
Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #6451:
URL: https://github.com/apache/shardingsphere/issues/6451#issuecomment-664088065
Hi @jingshanglu
This SQL could work well on our master branch, couldn't it?
----------------------------------------------------------------
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:
users@infra.apache.org