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

Appearance settings

Commit f2130e7

Browse filesBrowse files
committed
Fix incorrect print format in json.c
Oid is unsigned, so %u needs to be used and not %d. The code path involved here is not normally reachable, so no backpatch is done. Author: Justin Pryzby Discussion: https://postgr.es/m/20200728015523.GA27308@telsasoft.com
1 parent cb04ad4 commit f2130e7
Copy full SHA for f2130e7

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: src/backend/utils/adt/json.c
+1-1Lines 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
return NULL;
463463
}
464464

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.