Skip to content

Commit 8a70a1c

Browse files
committed
Hmm. I didn't expect a change since I hadn't added tests for the new
stuff, but fixing the bug that existed in reporting the constraint name changes the error line. Patch to expected output enclosed. Stephan Szabo
1 parent 0d59dad commit 8a70a1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/regress/expected/alter_table.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ INSERT INTO tmp3 values (5,50);
285285
-- Try (and fail) to add constraint due to invalid data
286286
ALTER TABLE tmp3 add constraint tmpconstr foreign key (a) references tmp2 match full;
287287
NOTICE: ALTER TABLE ... ADD CONSTRAINT will create implicit trigger(s) for FOREIGN KEY check(s)
288-
ERROR: <unnamed> referential integrity violation - key referenced from tmp3 not found in tmp2
288+
ERROR: tmpconstr referential integrity violation - key referenced from tmp3 not found in tmp2
289289
-- Delete failing row
290290
DELETE FROM tmp3 where a=5;
291291
-- Try (and succeed)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy