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

支持 json 类型值的 null,not null判断 #479

Merged
merged 2 commits into from
Jul 10, 2023
Merged

支持 json 类型值的 null,not null判断 #479

merged 2 commits into from
Jul 10, 2023

Conversation

YepYuYu
Copy link
Contributor

@YepYuYu YepYuYu commented Jul 10, 2023

  • 当前的判断,仅对json元素是否存在做了判断,没有对json中的值进行判断

如:

{
    "name":null,
    "test":123
}

通过whereNull("fields->name")是无法查询出来的

@YepYuYu YepYuYu changed the title 支持 json 类型的 null,not null判断 支持 json 类型值的 null,not null判断 Jul 10, 2023
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 57.14% and project coverage change: +0.45 🎉

Comparison is base (87911c8) 11.82% compared to head (ca4489f) 12.28%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@             Coverage Diff              @@
##                3.0     #479      +/-   ##
============================================
+ Coverage     11.82%   12.28%   +0.45%     
- Complexity     2956     2960       +4     
============================================
  Files            64       64              
  Lines          7118     7125       +7     
============================================
+ Hits            842      875      +33     
+ Misses         6276     6250      -26     
Flag Coverage Δ
unittests 12.28% <57.14%> (+0.45%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/db/builder/Mysql.php 49.24% <57.14%> (+1.32%) ⬆️

... and 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@liu21st liu21st merged commit ee898cb into top-think:3.0 Jul 10, 2023
3 of 5 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants