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解析异常 #2764

Closed
JackieXiangxy opened this issue Jul 5, 2024 · 3 comments
Closed

sql解析异常 #2764

JackieXiangxy opened this issue Jul 5, 2024 · 3 comments

Comments

@JackieXiangxy
Copy link

版本号:

1.7.6

问题描述:

当在where条件手动拼接1=1时,后台在解析sql时,会把动态条件也替换成1=1,导致sql执行报错。
image

where后面的动态查询条件不要简单粗暴换成1=1。在进行替换的时候做一下判断是否已经有条件了

错误日志&截图:

原始sql
image
image

解析后的结果

image

一点小建议:很多情况下报表都是执行比较复杂的slq,希望能将sql执行引擎优化一下,目前存在的问题确实有点多

重现步骤:

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

  • 积木报表是一款免费报表产品,功能免费源码不开放;
  • 未按格式要求发帖,会被直接删掉;
  • 请针对问题提供[报表设计配置或SQL脚本]或在官网制作报表示例并提供ID;
  • 针对不好重现的问题,请录制操作视频或详细的重现步骤;
@zhangdaiscott
Copy link
Member

你用的是那种模式?

@JackieXiangxy
Copy link
Author

你用的是那种模式?

配置好sql后点击解析按钮

image

@1298191366
Copy link

已修复,待新版本发布。后续需要你自行填写1=1

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

3 participants