-
Notifications
You must be signed in to change notification settings - Fork 206
Fix/3049 #3155
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
Conversation
- Introduced functions to assess compatibility between various data types (integers, strings, BLOBs, and DECIMALs). - Updated the main rule logic to utilize these new checks, ensuring accurate validation of WHERE/ON/USING clause conditions. - Added comprehensive comments detailing the logic and scenarios for type compatibility, addressing limitations of the current SQL parser. This enhancement aims to prevent performance issues caused by implicit type conversions in SQL queries.
…SQLE00112 - Introduced new test cases to validate behavior of various data types (e.g., BIGINT, INT, FLOAT, CHAR, DATE) in SQL queries. - Enhanced coverage for implicit conversion scenarios, ensuring accurate detection of type mismatches. - Organized tests into categories for better clarity and maintainability, addressing edge cases and boundary conditions. These additions aim to strengthen the robustness of type compatibility checks in SQL queries.
PR Reviewer Guide 🔍(Review updated until commit 2bbf896)
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
linxiaotao seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
Persistent review updated to latest commit 2bbf896 |
PR Code Suggestions ✨No code suggestions found for the PR. |
User description
关联的 issue
#3049
描述你的变更
确认项(pr提交后操作)
Tip
请在指定复审人之前,确认并完成以下事项,完成后✅
not_compatibleneed_update_docDescription
修复WHERE子句中类型判断错误
增加多函数校验整数、字符串、BLOB兼容性
重构getExprType为getExprTypeInfo返回UNSIGNED信息
增加大量测试用例覆盖隐式转换及边界情况
Diagram Walkthrough
File Walkthrough
rule_00112.go
重构规则函数及增强类型判断sqle/driver/mysql/rule/ai/rule_00112.go
rule_00112_test.go
新增覆盖各场景的规则测试sqle/driver/mysql/rule_00112_test.go