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

在线报表的sql中使用mysql的limit解析报错 #4072

Closed
fuzrong opened this issue Sep 26, 2022 · 3 comments
Closed

在线报表的sql中使用mysql的limit解析报错 #4072

fuzrong opened this issue Sep 26, 2022 · 3 comments

Comments

@fuzrong
Copy link

fuzrong commented Sep 26, 2022

版本号:3.1.0
前端版本:vue2版
问题描述:

在线报表开发的时候,sql语句中含有limit 时解析报错,去除时ok,mysql版本5.7+

截图&代码:

SELECT a.custom_name AS customName from
popup_window_record limit 1;

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
@zhangdaiscott
Copy link
Member

zhangdaiscott commented Sep 27, 2022

这个是因为我们为了提升性能,在解析的时候自动加入了分页参数,与你的冲突了
这个只影响解析,真正运行的时候分页参数可以用,你可以先去掉limit,解析成功后,再加上limit参数保存

@zhangdaiscott
Copy link
Member

也可以理解为mybatis plus的分页bug,未考虑带limit情况

@zhangdaiscott
Copy link
Member

下个版本修复

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