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

MySQL规则:建议列与表使用同一个字符集,触发panic #2855

Open
BugsGuru opened this issue Jan 6, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working
Milestone

Comments

@BugsGuru
Copy link
Collaborator

BugsGuru commented Jan 6, 2025

版本信息(Version)

sqle 3e9cfbfb7f7c6bff6dbfbaf0ee88a3607042c01b

问题描述(Describe)

审核MySQL特定的语句时,后端触发panic

截图或日志(Log)

github.com/actiontech/sqle/sqle/driver/mysql/rule.recommendTableColumnCharsetSame(0xc000effd00)
	D:/projects/sqle-ee/sqle/driver/mysql/rule/rule.go:3913 +0xb9e

img_v3_02i6_dcf21d4c-033d-445c-94e8-2173c47ebc7g

如何复现(To Reproduce)

  1. MySQL数据源上,开启审核规则:建议列与表使用同一个字符集
  2. 审核特定sql,如:alter table t1 alter log_date7 set default null;

问题原因

recommendTableColumnCharsetSame函数
image

解决方案

变更影响面

受影响的模块或功能

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

版本兼容性

测试建议

@BugsGuru BugsGuru added the bug Something isn't working label Jan 6, 2025
@ColdWaterLW ColdWaterLW added this to the v3.2501.0 milestone Jan 7, 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
Projects
None yet
Development

No branches or pull requests

2 participants