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

Commit8ad1f7d

Browse files
committed
Fix format specifier for NOTICE in copyfrom.c
It's incorrect to use %lz for 64-bit numbers on 32-bit machine.
1 parent9e2d870 commit8ad1f7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/commands/copyfrom.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,10 +1310,10 @@ CopyFrom(CopyFromState cstate)
13101310
if (cstate->opts.save_error_to!=COPY_SAVE_ERROR_TO_ERROR&&
13111311
cstate->num_errors>0)
13121312
ereport(NOTICE,
1313-
errmsg_plural("%zd row were skipped due to data type incompatibility",
1314-
"%zd rows were skipped due to data type incompatibility",
1315-
cstate->num_errors,
1316-
cstate->num_errors));
1313+
errmsg_plural("%llu row were skipped due to data type incompatibility",
1314+
"%llu rows were skipped due to data type incompatibility",
1315+
(unsigned long long)cstate->num_errors,
1316+
(unsigned long long)cstate->num_errors));
13171317

13181318
if (bistate!=NULL)
13191319
FreeBulkInsertState(bistate);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp