Disallow specifying ON_ERROR option without value.
authorMasahiko Sawada <msawada@postgresql.org>
Wed, 17 Apr 2024 02:31:27 +0000 (11:31 +0900)
committerMasahiko Sawada <msawada@postgresql.org>
Wed, 17 Apr 2024 02:31:27 +0000 (11:31 +0900)
commita6d0fa5ef840bc98e14cb34ecf672e6e2e245517
tree56148a2a696b4205160f7e01177aea7ab68e8d91
parent58cf2e120e8aee2daed5a9b9ee4471574f712b3b
Disallow specifying ON_ERROR option without value.

The ON_ERROR option of the COPY command previously allowed omitting
its value, which was inconsistent with the syntax synopsis in the
documentation and the behavior of other non-boolean COPY options.

This change enforces providing a value for the ON_ERROR option,
ensuring consistency across other non-boolean options and aligning
with the documented syntax.

Author: Atsushi Torikoshi
Reviewed-by: Masahiko Sawada
Discussion: https://postgr.es/m/a9770bf57646d90dedc3d54cf32634b2%40oss.nttdata.com
src/backend/commands/copy.c