]> granicus.if.org Git - postgresql/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)
commit0226cd72ec46ae946db77e9904b5588ca54f3ec6
treeb54c9efd75c77d8be181b07ee1074d6d9a620e0f
parentb10997b5b3eec7fb9fe64d7543435552f327ee51
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