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

Commitf2130e7

Browse files
committed
Fix incorrect print format in json.c
Oid is unsigned, so %u needs to be used and not %d. The code pathinvolved here is not normally reachable, so no backpatch is done.Author: Justin PryzbyDiscussion:https://postgr.es/m/20200728015523.GA27308@telsasoft.com
1 parentcb04ad4 commitf2130e7

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
@@ -458,7 +458,7 @@ JsonEncodeDateTime(char *buf, Datum value, Oid typid, const int *tzp)
458458
}
459459
break;
460460
default:
461-
elog(ERROR,"unknown jsonb value datetime type oid %d",typid);
461+
elog(ERROR,"unknown jsonb value datetime type oid %u",typid);
462462
returnNULL;
463463
}
464464

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp