Pass correct TupDesc to ri_NullCheck() in Assert
Alvaro Herrera <alvherre@alvh.no-ip.org>
Pass correct TupDesc to ri_NullCheck() in Assert Previous coding was passing the wrong table's tuple descriptor, which accidentally fails to fail because no existing test case exercises a foreign key in which the referenced attributes are further to the right of the referencing attributes. Add a test so that further breakage is visible. This got broken in 16828d5c0273. Discussion: https://postgr.es/m/20180403204723.fqte755nukgm42uf@alvherre.pgsql
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/ri_triggers.c | modified | +1 −1 |
| src/test/regress/expected/foreign_key.out | modified | +13 −0 |
| src/test/regress/sql/foreign_key.sql | modified | +10 −0 |
Discussion
- Foreign keys and partitioned tables 23 messages · 2017-12-31 → 2018-04-20