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

Commit62e57ff

Browse files
committed
Teach add_json() that jsonb is of TYPCATEGORY_JSON.
This code really needs to be refactored so that there aren't so many copiesthat can diverge. Not to mention that this whole approach is probablywrong. But for the moment I'll just stick my finger in the dike.Per report from Michael Paquier.
1 parentbdf9dd4 commit62e57ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ add_json(Datum val, bool is_null, StringInfo result, Oid val_type, bool key_scal
15621562
tcategory=TYPCATEGORY_ARRAY;
15631563
elseif (val_type==RECORDOID)
15641564
tcategory=TYPCATEGORY_COMPOSITE;
1565-
elseif (val_type==JSONOID)
1565+
elseif (val_type==JSONOID||val_type==JSONBOID)
15661566
tcategory=TYPCATEGORY_JSON;
15671567
else
15681568
tcategory=TypeCategory(val_type);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp