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

存在注释时,SQL解析会失败 #17

Open
GhyToSky opened this issue Nov 25, 2023 · 2 comments
Open

存在注释时,SQL解析会失败 #17

GhyToSky opened this issue Nov 25, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@GhyToSky
Copy link

GhyToSky commented Nov 25, 2023

场景:如果存在注释,比如<!-- 用户ID -->,那么SQL解析会失败,必现
期望:即使存在注释,SQL解析也能成功

大佬,麻烦处理下吧 @linyimin0812

Snipaste_2023-11-25_23-20-47

@hzh880811
Copy link

中文注释会报错:
io.github.linyimin.plugin.mybatis.parsing.ParseException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 9; 2 字节的 UTF-8 序列的字节 2 无效。

英文注释不会:

@GhyToSky
Copy link
Author

的确,存在中文注释才会报错 @hzh880811 @linyimin0812

@linyimin0812 linyimin0812 added the bug Something isn't working label Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants