Skip to content

Commit

Permalink
规范代码
Browse files Browse the repository at this point in the history
  • Loading branch information
big-dream committed Jan 18, 2024
1 parent 99cee09 commit 3d236d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/Builder.php
Expand Up @@ -63,7 +63,7 @@ protected function parseData(Query $query, array $data = [], array $fields = [],
if ($val instanceof Raw) {
$result[$item] = $this->parseRaw($query, $val);
continue;
}elseif (is_null($val)) {
} elseif (is_null($val)) {
// json字段默认为NULL,需要优先处理,不然会出现json字段写入字符串null的情况
$result[$item] = 'NULL';
continue;
Expand Down

0 comments on commit 3d236d7

Please sign in to comment.