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

Error occurred when modifying 'cql. parser. statement start' #242

Open
AhYi8 opened this issue Oct 8, 2023 · 2 comments
Open

Error occurred when modifying 'cql. parser. statement start' #242

AhYi8 opened this issue Oct 8, 2023 · 2 comments

Comments

@AhYi8
Copy link

AhYi8 commented Oct 8, 2023

我用的是 1.1.5 版本的

因为是公司内网,所以不能截图,只能描述一下
我在修改

cql:
  parser:
    statement-start: "<%"

此项配置时,报了Failed to convert from type [java.lang.String] to type [java.lang.Boolean]
看了一下源码,问题好像出在 org.nebula.contrib.ngbatis.NgbatisContextInitializer.class 类的 readParseCfgProps() 方法,请作者确认一下,感谢;

还有一个问题,就是你的定界符默认是 @ 符号,那我插入边的时候的语句里也有 @ 符号会不会也被当做定界符,该怎么解决?

@AhYi8
Copy link
Author

AhYi8 commented Oct 8, 2023

我下载的maven依赖里的源码 readParserCfgProps() 方法里在设置 setResourceRefresh() 时,对 cql. parser. statement 属性进行了 Boolean 转换,但是我看仓库的源码里就没有

@CorvusYe
Copy link
Collaborator

CorvusYe commented Oct 8, 2023

现在的版本不建议更换statement-start,因为会导致NebulaDaoBasic出错,还得自己另外编写对应定界符的xml。
关于边的@,可以使用\@进行转义,与定界符形成区分

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

No branches or pull requests

2 participants