nebula-contrib / ngbatis

NGBATIS is a database ORM framework base NebulaGraph + spring-boot, which takes advantage of the mybatis’ fashion development, including some de-factor operations in single table and vertex-edge, like mybatis-plus. NGBATIS 是一款针对 NebulaGraph + Springboot 的数据库 ORM 框架。借鉴于 MyBatis 的使用习惯进行开发。https://graph-cn.github.io/ngbatis-docs/
https://nebula-contrib.github.io/ngbatis/
Apache License 2.0
132 stars 42 forks source link

fix: #176 use double quote instead of the original single quote in valuaFmt function #177

Closed CorvusYe closed 1 year ago

CorvusYe commented 1 year ago

Description

Single quote are not within the scope of StringEscapeUtils.escapeJava escape, and double quote are enabled as delimiters for string parameters to avoid the above issues.

If you still want to use the original single quote due to special processing in the project, you can use ValueFmtFn.setParameterQuote ("'"); to preserve the original usage.


单引号不在 StringEscapeUtils.escapeJava 转义的范围内, 启用双引号来作为字符串参数的界定符,从而规避上述问题。

如果项目中因为特殊的处理依然想用原来的单引号, 可用 ValueFmtFn.setParameterQuote("'"); 来保留原用法。

PR type

codecov-commenter commented 1 year ago

Codecov Report

Patch and project coverage have no change.

Comparison is base (d8283ec) 0.00% compared to head (ab25d48) 0.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #177 +/- ## ====================================== Coverage 0.00% 0.00% ====================================== Files 73 73 Lines 2430 2435 +5 Branches 264 264 ====================================== - Misses 2430 2435 +5 ``` | [Impacted Files](https://app.codecov.io/gh/nebula-contrib/ngbatis/pull/177?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [.../ngbatis/binding/beetl/functions/IfStringLike.java](https://app.codecov.io/gh/nebula-contrib/ngbatis/pull/177?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL21haW4vamF2YS9vcmcvbmVidWxhL2NvbnRyaWIvbmdiYXRpcy9iaW5kaW5nL2JlZXRsL2Z1bmN0aW9ucy9JZlN0cmluZ0xpa2UuamF2YQ==) | `0.00% <0.00%> (ø)` | | | [...ib/ngbatis/binding/beetl/functions/ValueFmtFn.java](https://app.codecov.io/gh/nebula-contrib/ngbatis/pull/177?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL21haW4vamF2YS9vcmcvbmVidWxhL2NvbnRyaWIvbmdiYXRpcy9iaW5kaW5nL2JlZXRsL2Z1bmN0aW9ucy9WYWx1ZUZtdEZuLmphdmE=) | `0.00% <0.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.