]> granicus.if.org Git - postgresql/commit
Add regression tests for INSERT/UPDATE+RETURNING
authorStephen Frost <sfrost@snowman.net>
Mon, 5 Oct 2015 14:14:49 +0000 (10:14 -0400)
committerStephen Frost <sfrost@snowman.net>
Mon, 5 Oct 2015 14:14:49 +0000 (10:14 -0400)
commitbe400cd25c7f407111b9617dbf6a5fae761754cb
treeb2dc8b5349aff3fcc98d2c15d29cc2693f02448c
parent5976097c0fce03f8cc201aefc4445ad57e09bb75
Add regression tests for INSERT/UPDATE+RETURNING

This adds regressions tests which are specific to INSERT+RETURNING and
UPDATE+RETURNING to ensure that the SELECT policies are added as
WithCheckOptions (and should therefore throw an error when the policy is
violated).

Per suggestion from Andres.

Back-patch to 9.5 as the prior commit was.
src/test/regress/expected/rowsecurity.out
src/test/regress/sql/rowsecurity.sql