From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix test_rls_hooks to assign expression collations properly.
Date: Tue, 11 Dec 2018 16:48:17 +0000
Message-ID: <E1gWlCj-0005wX-UO@gemulon.postgresql.org> (raw)
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.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7a28e9aa0fd966ed374d244896e397148336720a
Modified Files
--------------
src/test/modules/test_rls_hooks/test_rls_hooks.c | 5 +++++
1 file changed, 5 insertions(+)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Fix test_rls_hooks to assign expression collations properly.
In-Reply-To: <E1gWlCj-0005wX-UO@gemulon.postgresql.org>
References: <E1gWlCj-0005wX-UO@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox