Content-Length: 255125 | pFad | http://github.com/postgrespro/postgres/commit/8a70a1c75d69af74f1d72cb7cebd50108a7ae3f5

8F Hmm. I didn't expect a change since I hadn't added tests for the new · postgrespro/postgres@8a70a1c · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/8a70a1c75d69af74f1d72cb7cebd50108a7ae3f5

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy