]> granicus.if.org Git - postgresql/commit
Add assign_expr_collations() to CreatePolicy() and AlterPolicy().
authorJoe Conway <mail@joeconway.com>
Sat, 11 Jul 2015 21:19:31 +0000 (14:19 -0700)
committerJoe Conway <mail@joeconway.com>
Sat, 11 Jul 2015 21:19:31 +0000 (14:19 -0700)
commit808ea8fc7bb259ddd810353719cac66e85a608c8
treef665df0ac4a9e9cdacfbfccefbf5f7d7354c93e8
parentcba045b0bd25285242936fd678bc443bfd0d5b83
Add assign_expr_collations() to CreatePolicy() and AlterPolicy().

As noted by Noah Misch, CreatePolicy() and AlterPolicy() omit to call
assign_expr_collations() on the node trees. Fix the omission and add
his test case to the rowsecurity regression test.
src/backend/commands/policy.c
src/test/regress/expected/rowsecurity.out
src/test/regress/sql/rowsecurity.sql