git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb04ad4)
Fix incorrect print format in json.c
2020年7月29日 05:44:32 +0000 (14:44 +0900)
2020年7月29日 05:44:32 +0000 (14:44 +0900)
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


diff --git a/src/backend/utils/adt/json.c b/src/backend/utils/adt/json.c
index 641ae3fdf8e3a757edac8ecc556015193341fa98..a7a91b72f69b2f35b153c8408d5c6f55c2590320 100644 (file)
--- 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;
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /