Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita4dbe40

Browse files
author
Nikita Glukhov
committed
Use JsonValueWrapInBinary()
1 parent2122c3d commita4dbe40

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

‎src/backend/utils/adt/json_generic.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,7 @@ jsonvArrayIteratorNext(JsonIterator **it, JsonValue *res, bool skipNested)
397397
elseif (res->type!=jbvBinary)
398398
{
399399
Assert(res->type==jbvArray||res->type==jbvObject);
400-
res->val.binary.data=JsonValueToContainer(val);
401-
res->val.binary.uniquified=JsonValueIsUniquified(val);
402-
res->type=jbvBinary;
400+
JsonValueWrapInBinary(val,res);
403401
}
404402
}
405403

@@ -449,10 +447,7 @@ jsonvObjectIteratorNext(JsonIterator **it, JsonValue *res, bool skipNested)
449447
elseif (res->type!=jbvBinary)
450448
{
451449
Assert(res->type==jbvArray||res->type==jbvObject);
452-
res->val.binary.data=JsonValueToContainer(&pair->value);
453-
res->val.binary.uniquified=
454-
JsonValueIsUniquified(&pair->value);
455-
res->type=jbvBinary;
450+
JsonValueWrapInBinary(&pair->value,res);
456451
}
457452
}
458453

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp