diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-01-06 16:21:57 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-01-06 16:22:08 -0500 |
commit | de5fed0d0c704e3d1a928bf420663319d898cee4 (patch) | |
tree | e0864f8edb88eea287ae299bd867a7a61d341995 /src/backend/parser/parse_expr.c | |
parent | d74ecbc8d85eb7a2aa1d5516c5c38d6ab0cbbd82 (diff) | |
download | postgresql-de5fed0d0c704e3d1a928bf420663319d898cee4.tar.gz postgresql-de5fed0d0c704e3d1a928bf420663319d898cee4.zip |
Merge two copies of tuple-building code in pltcl.c.
Make pltcl_trigger_handler() construct modified tuples using
pltcl_build_tuple_result(), rather than its own copy of essentially
the same logic. This results in slightly different message wording for
the error cases, and in one case a different SQLSTATE, but it seems
unlikely that any existing applications are depending on any of those
details.
While at it, fix a typo in commit 26abb50c4: pltcl_build_tuple_result was
applying encoding conversion in the wrong direction. That would be a
back-patchable bug fix, except the code hasn't shipped yet.
Jim Nasby, reviewed by me
Discussion: https://postgr.es/m/d2c6425a-d9e0-f034-f774-4a872c234d89@BlueTreble.com
Diffstat (limited to 'src/backend/parser/parse_expr.c')
0 files changed, 0 insertions, 0 deletions