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

优化数据库查询构建器:当 where 条件的值为 NULL 时,不使用参数绑定 #670

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

Yurunsoft
Copy link
Member

MySQL 和 PostgreSQL 都不支持 is NULLNULL 使用参数绑定传值。

NULL 是 SQL 标准关键字,直接拼接不会有兼容问题。

fix #669

@Yurunsoft Yurunsoft added optimization Optimization 3.0 Plan version 3.0 2.1 labels Jan 4, 2024
Copy link

codecov bot commented Jan 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f28f988) 65.98% compared to head (6961142) 65.98%.

Additional details and impacted files
@@             Coverage Diff              @@
##                2.1     #670      +/-   ##
============================================
- Coverage     65.98%   65.98%   -0.01%     
- Complexity    11285    11287       +2     
============================================
  Files           897      897              
  Lines         30728    30732       +4     
============================================
+ Hits          20277    20278       +1     
- Misses        10451    10454       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Yurunsoft Yurunsoft merged commit 9fb44f3 into 2.1 Jan 5, 2024
54 of 57 checks passed
@Yurunsoft Yurunsoft deleted the fix-669 branch January 5, 2024 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.1 3.0 Plan version 3.0 optimization Optimization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant