Describe the bug
加入一些sql与注释相关的内容不能运行解析,比如符号 #
To Reproduce
Steps to reproduce the behavior:
- Example SQL (this sql navicate can run success,JSqlParser can‘not parser)
String sql = " select * from t_aim_sys_user where id = '11' #limit 3";
- Parsing this SQL using JSqlParser with this statements
Statement statement = CCJSqlParserUtil.parse(sql);
- Exception
Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "#limit" <S_IDENTIFIER>
Expected behavior
A clear and concise description of what you expected to happen.
System
- Database you are using
mysql 5.6
- Java Version
1.8
- JSqlParser version
3.1
Describe the bug
加入一些sql与注释相关的内容不能运行解析,比如符号 #
To Reproduce
Steps to reproduce the behavior:
String sql = " select * from t_aim_sys_user where id = '11' #limit 3";
Statement statement = CCJSqlParserUtil.parse(sql);
Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "#limit" <S_IDENTIFIER>
Expected behavior
A clear and concise description of what you expected to happen.
System
mysql 5.6
1.8
3.1