mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 11:51:18 +02:00
Fix format specifier for NOTICE in copyfrom.c
It's incorrect to use %lz for 64-bit numbers on 32-bit machine.
This commit is contained in:
parent
9e2d870119
commit
8ad1f7db87
@ -1310,10 +1310,10 @@ CopyFrom(CopyFromState cstate)
|
|||||||
if (cstate->opts.save_error_to != COPY_SAVE_ERROR_TO_ERROR &&
|
if (cstate->opts.save_error_to != COPY_SAVE_ERROR_TO_ERROR &&
|
||||||
cstate->num_errors > 0)
|
cstate->num_errors > 0)
|
||||||
ereport(NOTICE,
|
ereport(NOTICE,
|
||||||
errmsg_plural("%zd row were skipped due to data type incompatibility",
|
errmsg_plural("%llu row were skipped due to data type incompatibility",
|
||||||
"%zd rows were skipped due to data type incompatibility",
|
"%llu rows were skipped due to data type incompatibility",
|
||||||
cstate->num_errors,
|
(unsigned long long) cstate->num_errors,
|
||||||
cstate->num_errors));
|
(unsigned long long) cstate->num_errors));
|
||||||
|
|
||||||
if (bistate != NULL)
|
if (bistate != NULL)
|
||||||
FreeBulkInsertState(bistate);
|
FreeBulkInsertState(bistate);
|
||||||
|
Loading…
Reference in New Issue
Block a user