aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/json.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-11-08 08:59:39 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2013-11-08 08:59:39 -0500
commit060b22a99a67e01aa097f1a21d2123f166ccdb15 (patch)
treeded3bc7456187c34aeb7f2f511af37915119dd36 /src/backend/utils/adt/json.c
parent20803d7881c3865edede170579f55261140b5d0d (diff)
downloadpostgresql-060b22a99a67e01aa097f1a21d2123f166ccdb15.tar.gz
postgresql-060b22a99a67e01aa097f1a21d2123f166ccdb15.zip
Fix subtly-wrong volatility checking in BeginCopyFrom().
contain_volatile_functions() is best applied to the output of expression_planner(), not its input, so that insertion of function default arguments and constant-folding have been done. (See comments at CheckMutability, for instance.) It's perhaps unlikely that anyone will notice a difference in practice, but still we should do it properly. In passing, change variable type from Node* to Expr* to reduce the net number of casts needed. Noted while perusing uses of contain_volatile_functions().
Diffstat (limited to 'src/backend/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions