Bug: COPY IN doesn't test domain constraints

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Bug: COPY IN doesn't test domain constraints
Дата
Msg-id 2438.1032213240@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: Bug: COPY IN doesn't test domain constraints  (Rod Taylor <rbt@rbt.ca>)
Список pgsql-hackers
In CVS tip:

regression=# create domain nnint int not null;
CREATE DOMAIN
regression=# create table foo (f1 nnint);
CREATE TABLE
regression=# insert into foo values(null);
ERROR:  Domain nnint does not allow NULL values        -- okay
regression=# \copy foo from stdin
123
\N
\.
regression=# select * from foo;f1
-----123                        -- not okay
(2 rows)

regression=# create domain vc4 varchar(4);
CREATE DOMAIN
regression=# create table foot (f1 vc4);
CREATE TABLE
regression=# \copy foot from stdin
1234567890
\.
regression=# select * from foot;    f1
------------1234567890                        -- not okay
(1 row)

        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: FreeBSD Packages/Port for 7.3beta1...
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: directional marks