diff options
author | Tomas Vondra | 2017-07-16 18:52:59 +0000 |
---|---|---|
committer | Tomas Vondra | 2017-07-16 18:52:59 +0000 |
commit | 923a72a4d4189673c76c9705ce8aa69e7310cdcf (patch) | |
tree | ce32f0cf142ebaf0e02b2e308834504449136b29 | |
parent | 6b9779ddbed864b0cbccafa973a8f84215689f2d (diff) |
Accept type name in duplicate key error message
The output routine for anyarray data type (anyarray_out) is modified to
include name of the data type in the text representation. Which is also
used when an error message includes the value, for example duplicate
key errors.
-rw-r--r-- | src/test/regress/expected/domain.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/regress/expected/domain.out b/src/test/regress/expected/domain.out index 409c28d764..6f65a6e81c 100644 --- a/src/test/regress/expected/domain.out +++ b/src/test/regress/expected/domain.out @@ -207,7 +207,7 @@ insert into dcomptable values (array[row(3,4), row(5,6)]::comptype[]); insert into dcomptable values (array[row(7,8)::comptype, row(9,10)::comptype]); insert into dcomptable values (array[row(1,2)]::dcomptypea); -- fail on uniqueness ERROR: duplicate key value violates unique constraint "dcomptable_d1_key" -DETAIL: Key (d1)=({"(1,2)"}) already exists. +DETAIL: Key (d1)=((public.comptype){"(1,2)"}) already exists. insert into dcomptable (d1[1]) values(row(9,10)); insert into dcomptable (d1[1].r) values(11); select * from dcomptable; |