使用了大家解决空格的最简易的方式
configuration:
shrink-whitespaces-in-sql: true
也使用了 mpBs.sql().replaceAll("(\r?\n){2,}", "$1")
最后发现是sample导致的
SQL是 Parsing SQL: SELECT a.id AS "id",sample.name AS "sample.name" FROM l_sample_out_details a LEFT JOIN l_sample_out_manage sample ON sample.id = a.out_library_id
this.parserSingle 会报错
详细堆栈日志
Was expecting one of:
<EOF>
<ST_SEMICOLON>
net.sf.jsqlparser.JSQLParserException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "," ","
确认
当前程序版本
MP 版本 3.5.7 数据库是MySQL 8.0
问题描述
使用了大家解决空格的最简易的方式 configuration: shrink-whitespaces-in-sql: true 也使用了 mpBs.sql().replaceAll("(\r?\n){2,}", "$1") 最后发现是sample导致的 SQL是 Parsing SQL: SELECT a.id AS "id",sample.name AS "sample.name" FROM l_sample_out_details a LEFT JOIN l_sample_out_manage sample ON sample.id = a.out_library_id this.parserSingle 会报错
详细堆栈日志