aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonb_util.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-03-03 07:01:18 +0100
committerPeter Eisentraut <peter@eisentraut.org>2023-03-03 07:01:18 +0100
commitb1307b8b60111be8ddd8d6127701883c047bed15 (patch)
tree877f9461087d1344ed073e85ef00a3aadee239d0 /src/backend/utils/adt/jsonb_util.c
parentd28a449854202d0a409e13e2e73f78373da1ed75 (diff)
downloadpostgresql-b1307b8b60111be8ddd8d6127701883c047bed15.tar.gz
postgresql-b1307b8b60111be8ddd8d6127701883c047bed15.zip
Fix incorrect format placeholders
Diffstat (limited to 'src/backend/utils/adt/jsonb_util.c')
-rw-r--r--src/backend/utils/adt/jsonb_util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/utils/adt/jsonb_util.c b/src/backend/utils/adt/jsonb_util.c
index 6951426f765..e5b1ebf0c36 100644
--- a/src/backend/utils/adt/jsonb_util.c
+++ b/src/backend/utils/adt/jsonb_util.c
@@ -1664,7 +1664,7 @@ convertJsonbArray(StringInfo buffer, JEntry *header, JsonbValue *val, int level)
if (totallen > JENTRY_OFFLENMASK)
ereport(ERROR,
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
- errmsg("total size of jsonb array elements exceeds the maximum of %u bytes",
+ errmsg("total size of jsonb array elements exceeds the maximum of %d bytes",
JENTRY_OFFLENMASK)));
/*
@@ -1684,7 +1684,7 @@ convertJsonbArray(StringInfo buffer, JEntry *header, JsonbValue *val, int level)
if (totallen > JENTRY_OFFLENMASK)
ereport(ERROR,
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
- errmsg("total size of jsonb array elements exceeds the maximum of %u bytes",
+ errmsg("total size of jsonb array elements exceeds the maximum of %d bytes",
JENTRY_OFFLENMASK)));
/* Initialize the header of this node in the container's JEntry array */
@@ -1745,7 +1745,7 @@ convertJsonbObject(StringInfo buffer, JEntry *header, JsonbValue *val, int level
if (totallen > JENTRY_OFFLENMASK)
ereport(ERROR,
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
- errmsg("total size of jsonb object elements exceeds the maximum of %u bytes",
+ errmsg("total size of jsonb object elements exceeds the maximum of %d bytes",
JENTRY_OFFLENMASK)));
/*
@@ -1780,7 +1780,7 @@ convertJsonbObject(StringInfo buffer, JEntry *header, JsonbValue *val, int level
if (totallen > JENTRY_OFFLENMASK)
ereport(ERROR,
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
- errmsg("total size of jsonb object elements exceeds the maximum of %u bytes",
+ errmsg("total size of jsonb object elements exceeds the maximum of %d bytes",
JENTRY_OFFLENMASK)));
/*
@@ -1800,7 +1800,7 @@ convertJsonbObject(StringInfo buffer, JEntry *header, JsonbValue *val, int level
if (totallen > JENTRY_OFFLENMASK)
ereport(ERROR,
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
- errmsg("total size of jsonb object elements exceeds the maximum of %u bytes",
+ errmsg("total size of jsonb object elements exceeds the maximum of %d bytes",
JENTRY_OFFLENMASK)));
/* Initialize the header of this node in the container's JEntry array */