Content-Length: 270325 | pFad | http://github.com/postgrespro/postgres/commit/8ad1f7db87f0375cfd7c6ae24aa13bdbdff2477a

B4 Fix format specifier for NOTICE in copyfrom.c · postgrespro/postgres@8ad1f7d · GitHub
Skip to content

Commit 8ad1f7d

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 parent 9e2d870 commit 8ad1f7d

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/8ad1f7db87f0375cfd7c6ae24aa13bdbdff2477a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy