aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/geo_spgist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-04-21 23:17:36 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-04-21 23:17:36 -0400
commitabb164655c703a5013b7fcf83f855a071895dc91 (patch)
treee194dc92caf724447439fdeb445687d91f116a42 /src/backend/utils/adt/geo_spgist.c
parent80f66a9ad06eafa91ffc5ff19c725c7f393c242e (diff)
downloadpostgresql-abb164655c703a5013b7fcf83f855a071895dc91.tar.gz
postgresql-abb164655c703a5013b7fcf83f855a071895dc91.zip
Fix unexpected side-effects of operator_precedence_warning.
The implementation of that feature involves injecting nodes into the raw parsetree where explicit parentheses appear. Various places in parse_expr.c that test to see "is this child node of type Foo" need to look through such nodes, else we'll get different behavior when operator_precedence_warning is on than when it is off. Note that we only need to handle this when testing untransformed child nodes, since the AEXPR_PAREN nodes will be gone anyway after transformExprRecurse. Per report from Scott Ribe and additional code-reading. Back-patch to 9.5 where this feature was added. Report: <ED37E303-1B0A-4CD8-8E1E-B9C4C2DD9A17@elevated-dev.com>
Diffstat (limited to 'src/backend/utils/adt/geo_spgist.c')
0 files changed, 0 insertions, 0 deletions