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/06/28 22:30:56 UTC

[GitHub] [shardingsphere] KaiRyoung commented on issue #5850: SelectStatement.parameterCount was wrong when sql condition like DATE_FORMAT(data_create_time, '%Y-%m-%d')>= DATE_FORMAT(?, '%Y-%m-%d')

KaiRyoung commented on issue #5850:
URL: https://github.com/apache/shardingsphere/issues/5850#issuecomment-650830936


   I have the same problem
   
   I saw other issues and the display in MySQLStatementParser, version 4.0.0-RC3 does not yet support date_format function
   
   When I tested, it was found that 4.0.1 was used normally, but 4.1.0 would report an error: ClassCastException: java.lang.String cannot be cast to java.lang.Integer
   
   I see that the SQLParserEntry is missing in 4.1.0, maybe this affects the date_format?
    
   this is my sharding configuration:
   
   ![1593381902(1)](https://user-images.githubusercontent.com/36319737/85959374-9f958800-b9ce-11ea-991b-9b784e852d81.jpg)
   
   @strongduanmu 


----------------------------------------------------------------
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