jDialects icon indicating copy to clipboard operation
jDialects copied to clipboard

Dialect 类的public String pagin(int pageNumber, int pageSize, String sql)问题 导致查询校验问题

Open latteio opened this issue 1 year ago • 0 comments

if (!StrUtils.startsWithIgnoreCase(trimedSql, "select ")) 这句判断,会导致将select语句单独写到一行的这类语句校验失败。 如: select t.field1, t.field2, ... from table t xxx

这个select语句并不是以select+空格结尾,而是以select+换行符结尾,这样会导致验证失败

latteio avatar Oct 31 '24 00:10 latteio