Add tests for more row patterns with COPY FROM .. (ON_ERROR ignore)
authorMichael Paquier <[email protected]>
Wed, 13 Mar 2024 05:19:21 +0000 (14:19 +0900)
committerMichael Paquier <[email protected]>
Wed, 13 Mar 2024 05:19:21 +0000 (14:19 +0900)
commita189ed49d6292979be1478292246be61c4563043
tree82fcdfe4441a571f6ebe0329b01e2f6989b49b26
parent0b84f5c419a300dc1b1a70cf63b9907208e52643
Add tests for more row patterns with COPY FROM .. (ON_ERROR ignore)

While digging into the code of this feature, I got confused by the fact
that a line is skipped when a value cannot be converted to its expected
attribute even if the line has fewer attributes than the target
relation.  The tests had a check for the case of an empty line, this
commit a couple more patterns where a line is incomplete, but skipped
because of a conversion error.

Reviewed-by: Bharath Rupireddy
Discussion: https://postgr.es/m/[email protected]
src/test/regress/expected/copy2.out
src/test/regress/sql/copy2.sql