pgsql: Fix for new Boolean node

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix for new Boolean node
Date: 2022-01-17 13:13:56
Message-ID: E1n9Rpc-0002Be-E1@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix for new Boolean node

The token in nodeTokenType() is actually the whole rest of the string,
so we need to take into account the length to do the correct
comparison.

Without this, postgres_fdw tests fail under
-DWRITE_READ_PARSE_PLAN_TREES.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cf925936ecc031355cd56fbd392ec3180517a110

Modified Files
--------------
src/backend/nodes/read.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-01-17 15:15:17 Re: pgsql: Add Boolean node
Previous Message Peter Eisentraut 2022-01-17 09:43:39 pgsql: Add Boolean node