]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix test_rls_hooks to assign expression collations properly.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Dec 2018 16:48:00 +0000 (11:48 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Dec 2018 16:48:00 +0000 (11:48 -0500)
commitd2267b61adef7811ab190dc2fa8c0399646434fe
tree68b4876e82fec2617f6bcb0d18d21f27237c6244
parentb48cfafd5fe74b98bc26da2e8873591971c8a800
Fix test_rls_hooks to assign expression collations properly.

This module overlooked this necessary fixup step on the results of
transformWhereClause().  It accidentally worked anyway, because the
constructed expression involved type "name" which is not collatable,
but it fell over while I was experimenting with changing "name" to
be collatable.

Back-patch, not because there's any live bug here in back branches,
but because somebody might use this code as a model for some real
application and then not understand why it doesn't work.
src/test/modules/test_rls_hooks/test_rls_hooks.c