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

审核带有Begin的语句会出现语法分析报错 #2956

Closed
littleniannian opened this issue Mar 10, 2025 · 2 comments
Closed

审核带有Begin的语句会出现语法分析报错 #2956

littleniannian opened this issue Mar 10, 2025 · 2 comments
Assignees
Labels
bug Something isn't working publish-pre2 verified the issue all pr is verified
Milestone

Comments

@littleniannian
Copy link
Collaborator

littleniannian commented Mar 10, 2025

版本信息(Version)

main-4.2502
插件信息 MySQL

问题描述(Describe)

审核带有Begin的语句会出现语法分析报错

截图或日志(Log)

Image

Image

如何复现(To Reproduce)

  • 审核带有Begin的语句

问题原因

  • 在进行ParseSQL的时候没有将原来的语句解析为两条语句。
    Image

解决方案

  • 当SQL语句是BEGIN;类似的语句时,不需要将他识别为定义存储过程的语句块。

变更影响面

受影响的模块或功能

  • SQL审核包含BEGIN/END语句块

外部引用的潜在问题或风险

版本兼容性

测试建议

@littleniannian
Copy link
Collaborator Author

自测截图:
Image

@winfredLIN
Copy link
Collaborator

winfredLIN commented Mar 26, 2025

版本信息

UI: 4.2503.0-pre3-ee 8b6b2a5f
DMS: 4.2503.0-pre3-ee 6a09ffe1e1
SQLE: 4.2503.0-pre3-ee 066f8c6

测试过程

快捷审核,选择MySQL
Image

@winfredLIN winfredLIN added the verified the issue all pr is verified label Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working publish-pre2 verified the issue all pr is verified
Projects
None yet
Development

No branches or pull requests

3 participants