Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDL语句 DROP TABLE IF EXISTS USER 解析表明错误 #346

Closed
jingshouyan opened this issue Aug 24, 2017 · 1 comment
Closed

DDL语句 DROP TABLE IF EXISTS USER 解析表明错误 #346

jingshouyan opened this issue Aug 24, 2017 · 1 comment

Comments

@jingshouyan
Copy link

Please answer these questions before submitting your issue. Thanks!

Which version of Sharding-Jdbc do you using?

1.5.1

Expected behavior

表名解析为 USER

Actual behavior

表名解析为 IF

Steps to reproduce the behavior

log:
2017-08-24 17:29:03,764 datasourceService INFO [main] Sharding-JDBC-SQL: Logic SQL: DROP TABLE IF EXISTS USER;
2017-08-24 17:29:03,764 datasourceService INFO [main] Sharding-JDBC-SQL: SQLStatement: DDLStatement(super=AbstractSQLStatement(type=DDL, tables=Tables(tables=[Table(name=IF, alias=Optional.absent())]), conditions=Conditions(conditions={}), sqlTokens=[TableToken(beginPosition=11, originalLiterals=IF)]))
2017-08-24 17:29:03,764 datasourceService INFO [main] Sharding-JDBC-SQL: Actual SQL: user_00 ::: DROP TABLE IF EXISTS USER;

Please provide the reproduce example codes (such as github link) if possible.

@jingshouyan jingshouyan changed the title DDL语句 DROP TABLE IF EXISTS USER 解析表明失败 DDL语句 DROP TABLE IF EXISTS USER 解析表明错误 Aug 24, 2017
@terrymanu
Copy link
Member

fixed at 1.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants