Hmm. I didn't expect a change since I hadn't added tests for the new
authorBruce Momjian <[email protected]>
Sun, 16 Jul 2000 19:27:29 +0000 (19:27 +0000)
committerBruce Momjian <[email protected]>
Sun, 16 Jul 2000 19:27:29 +0000 (19:27 +0000)
stuff, but fixing the bug that existed in reporting the constraint name
changes the error line.  Patch to expected output enclosed.

Stephan Szabo

src/test/regress/expected/alter_table.out

index 80010b965bd1cc8299bac9f2e43716ada36a056e..a0fef3b55ee1ab3615ab1851513fcad7e5ed694b 100644 (file)
@@ -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)