apache / shardingsphere

Distributed SQL transaction & query engine for data sharding, scaling, encryption, and more - on any database.
Apache License 2.0
19.77k stars 6.69k forks source link

Missing UNSIGNED INTEGER and SIGNED INTEGER in castType #22344

Open justtraveller opened 1 year ago

justtraveller commented 1 year ago

Is there a reason why castType is missing UNSIGNED INTEGER and SIGNED INTEGER ?

https://github.com/apache/shardingsphere/blob/163a4bd2b863435bb69cc1181035e79d4335b5ad/sql-parser/dialect/mysql/src/main/antlr4/imports/mysql/BaseRule.g4#L1017

They are defined in dataType.

https://github.com/apache/shardingsphere/blob/163a4bd2b863435bb69cc1181035e79d4335b5ad/sql-parser/dialect/mysql/src/main/antlr4/imports/mysql/BaseRule.g4#L1161

I apologize if this question has already been answered, I couldn't find this information anywhere.

strongduanmu commented 1 year ago

Hi @justtraveller, thank you for your feedback. I think this maybe a bug, can you try to fix it?

justtraveller commented 1 year ago

I am going to give it a shot.

strongduanmu commented 1 year ago

Good job, I will assign this issue to you.