git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0b84f5c) | patch
Add tests for more row patterns with COPY FROM .. (ON_ERROR ignore)
2024年3月13日 05:19:21 +0000 (14:19 +0900)
2024年3月13日 05:19:21 +0000 (14:19 +0900)
commit a189ed49d6292979be1478292246be61c4563043
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/Ze_7kZqexdt0BiyC@paquier.xyz
src/test/regress/expected/copy2.out diff | blob | blame | history
src/test/regress/sql/copy2.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /