diff options
author | Michael Paquier | 2020-07-29 05:44:32 +0000 |
---|---|---|
committer | Michael Paquier | 2020-07-29 05:44:32 +0000 |
commit | f2130e77da51f35d37fd15a343bc1c4a4527e0fd (patch) | |
tree | 437058a14856074a22a3dc100b36da7c766f4c8a /src | |
parent | cb04ad498551dcdb91a834c2e8730cdf0b77e70a (diff) |
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/[email protected]
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/adt/json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/json.c b/src/backend/utils/adt/json.c index 641ae3fdf8e..a7a91b72f69 100644 --- a/src/backend/utils/adt/json.c +++ b/src/backend/utils/adt/json.c @@ -458,7 +458,7 @@ JsonEncodeDateTime(char *buf, Datum value, Oid typid, const int *tzp) } break; default: - elog(ERROR, "unknown jsonb value datetime type oid %d", typid); + elog(ERROR, "unknown jsonb value datetime type oid %u", typid); return NULL; } |