Add assign_expr_collations() to CreatePolicy() and AlterPolicy().
Joe Conway <mail@joeconway.com>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/policy.c | modified | +10 −0 |
| src/test/regress/expected/rowsecurity.out | modified | +21 −0 |
| src/test/regress/sql/rowsecurity.sql | modified | +12 −0 |