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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0a3edbb) | patch
Apply identity sequence values on COPY
Fri, 8 Dec 2017 14:18:18 +0000 (09:18 -0500)
Fri, 8 Dec 2017 14:18:18 +0000 (09:18 -0500)
commit 2d2d06b7e27e3177d5bef0061801c75946871db3
Apply identity sequence values on COPY

A COPY into a table should apply identity sequence values just like it
does for ordinary defaults. This was previously forgotten, leading to
null values being inserted, which in turn would fail because identity
columns have not-null constraints.

Author: Michael Paquier <michael.paquier@gmail.com>
Reported-by: Steven Winfield <steven.winfield@cantabcapital.com>
Bug: #14952
src/backend/commands/copy.c diff | blob | blame | history
src/test/regress/expected/identity.out diff | blob | blame | history
src/test/regress/sql/identity.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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