-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mysql中json字段默认值为null的情况下,设置json字段会出现写入字符串null的情况
- Loading branch information
1 parent
7b0b8ea
commit 99cee09
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99cee09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个is_null的判断放在字段的判断之前了?那如果传一个不存在的字段不如:aaaaa=null,就走不到下面的字段过滤了呀?最终得出的data就是个带有不存在的字段aaaaa了。之前版本都会走到下面过滤掉。