aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/varchar.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-03-22 14:13:17 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-03-22 14:13:17 -0400
commit88a4cb30a4c48a6b11fd4641855595d2678aa123 (patch)
tree87c193d3f0e106612ccb0fad03d3a302d5bcce43 /src/backend/utils/adt/varchar.c
parente9ce658b6203e9052bff5c89ed6265fba69cdb36 (diff)
downloadpostgresql-88a4cb30a4c48a6b11fd4641855595d2678aa123.tar.gz
postgresql-88a4cb30a4c48a6b11fd4641855595d2678aa123.zip
Fix GET DIAGNOSTICS for case of assignment to function's first variable.
An incorrect and entirely unnecessary "safety check" in exec_stmt_getdiag() caused the code to treat an assignment to a variable with dno zero as a no-op. Unfortunately, that's a perfectly valid dno. This has been broken since GET DIAGNOSTICS was invented. It's not terribly surprising that the bug went unnoticed for so long, since in most cases you probably wouldn't use the function's first-created variable (normally its first parameter) as a GET DIAGNOSTICS target. Nonetheless, it's broken. Per bug #6551 from Adam Buraczewski.
Diffstat (limited to 'src/backend/utils/adt/varchar.c')
0 files changed, 0 insertions, 0 deletions