Fix for new Boolean node
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 17 Jan 2022 12:59:46 +0000 (13:59 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 17 Jan 2022 12:59:46 +0000 (13:59 +0100)
commitcf925936ecc031355cd56fbd392ec3180517a110
tree0c8961095f9f69eca681c48b47aeac7bdcdcb380
parent941460fcf731a32e6a90691508d5cfa3d1f8eeaf
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.
src/backend/nodes/read.c