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

Commit0fb250d

Browse files
committed
Cannot rely on %z printf length modifier.
Before version 9.4, we didn't require sprintf to support the %z lengthmodifier. Use %lu instead.Reported by Peter Eisentraut. Apply to 9.3 and earlier.
1 parent8f75d7a commit0fb250d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/access/gist/gist.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,8 +1268,9 @@ gistSplit(Relation r,
12681268
if (len==1)
12691269
ereport(ERROR,
12701270
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
1271-
errmsg("index row size %zu exceeds maximum %zu for index \"%s\"",
1272-
IndexTupleSize(itup[0]),GiSTPageSize,
1271+
errmsg("index row size %lu exceeds maximum %lu for index \"%s\"",
1272+
(unsigned long)IndexTupleSize(itup[0]),
1273+
(unsigned long)GiSTPageSize,
12731274
RelationGetRelationName(r))));
12741275

12751276
memset(v.spl_lisnull, TRUE,sizeof(bool)*giststate->tupdesc->natts);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp