-
Notifications
You must be signed in to change notification settings - Fork 364
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中有中文导致报TokenMgrError: Lexical error #47
Comments
SQL贴出来看看 |
@Sql("SELECT DISTINCT IFNULL(i.c_name, '中文' ) AS c_corp_name, dc.n_id, dc" + |
中文名称解决了吗 |
期待能解决中文问题 |
下个小版本处理好中文问题哈 |
在注解的SQL中有一个单引号引的中文,启动项目时(还未调用接口)报错
org.jfaster.mango.parser.TokenMgrError: Lexical error at line 1, column 35. Encountered: "\u4e2d" (20013), after : "'"
at org.jfaster.mango.parser.ParserTokenManager.getNextToken(ParserTokenManager.java:1443)
at org.jfaster.mango.parser.Parser.jj_ntk(Parser.java:1374)
at org.jfaster.mango.parser.Parser.parse(Parser.java:28)
at org.jfaster.mango.parser.SqlParser.parse(SqlParser.java:26)
at org.jfaster.mango.operator.OperatorFactory.getOperator(OperatorFactory.java:68)
at org.jfaster.mango.operator.Mango$MangoInvocationHandler$1.load(Mango.java:301)
at org.jfaster.mango.operator.Mango$MangoInvocationHandler$1.load(Mango.java:291)
at org.jfaster.mango.util.local.DoubleCheckCache.get(DoubleCheckCache.java:41)
at org.jfaster.mango.operator.Mango$MangoInvocationHandler.getOperator(Mango.java:335)
at org.jfaster.mango.operator.Mango.create(Mango.java:196)
at org.jfaster.mango.plugin.spring.AbstractMangoFactoryBean.getObject(AbstractMangoFactoryBean.java:40)
尝试将中文用Unicode编码,添加了反斜杠转义(‘\\’),后返回编码后的代码,怎么样才能返回中文
The text was updated successfully, but these errors were encountered: