Fix for new Boolean node

Peter Eisentraut <peter@eisentraut.org>

Commit: cf925936ecc031355cd56fbd392ec3180517a110
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2022-01-17T12:59:46Z
Releases: 15.0
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.

Files

PathChange+/−
src/backend/nodes/read.c modified +2 −1