shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

mysql parse can not parse cast function

Open avalon566 opened this issue 7 years ago • 2 comments

Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Please pay attention on issues you submitted, because we maybe need more details. If no response more than 7 days and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

4.0.0-RC1-SNAPSHOT

Which project did you use? Sharding-JDBC or Sharding-Proxy?

Sharding-Proxy

Expected behavior

Execute this SQL routing correctly select cast(order_id as varchar) from t_order

Actual behavior

routing to random datasource

Reason analyze (If you can)

anltr mysql not support cast function

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

select cast(order_id as varchar) from t_order

Example codes for reproduce this issue (such as a github link).

avalon566 avatar Mar 18 '19 04:03 avalon566

cast function Syntax is different with other general function, it was fixed

codefairy08 avatar Mar 21 '19 03:03 codefairy08

fixed at #2038

terrymanu avatar Mar 28 '19 08:03 terrymanu