mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-18 18:44:06 +08:00
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
This commit is contained in:
parent
0d59dad770
commit
8a70a1c75d
@ -285,7 +285,7 @@ INSERT INTO tmp3 values (5,50);
|
||||
-- Try (and fail) to add constraint due to invalid data
|
||||
ALTER TABLE tmp3 add constraint tmpconstr foreign key (a) references tmp2 match full;
|
||||
NOTICE: ALTER TABLE ... ADD CONSTRAINT will create implicit trigger(s) for FOREIGN KEY check(s)
|
||||
ERROR: <unnamed> referential integrity violation - key referenced from tmp3 not found in tmp2
|
||||
ERROR: tmpconstr referential integrity violation - key referenced from tmp3 not found in tmp2
|
||||
-- Delete failing row
|
||||
DELETE FROM tmp3 where a=5;
|
||||
-- Try (and succeed)
|
||||
|
Loading…
Reference in New Issue
Block a user