Tiny
Results
2
comments of
Tiny
Again, you can call `CCJSqlParserUtil.sanitizeSingleSql( sqlStr)` to clean your statements properly.
为何不是官方在BoundSql的统一生成处使用CCJSqlParserUtil.sanitizeSingleSql来处理呢?直接从源头处理掉是不是会更好;像DataPermissionInterceptor中beforeQuery、beforePrepare的方法中会调用parserSingle和parserMulti方法,这里面会走校验,那在调用之前先CCJSqlParserUtil.sanitizeSingleSql处理一下或者在更早的地方处理应该更好一些吧? @nieqiurong
Fixed issue https://github.com/gogf/gf/issues/4307 and add unit test