aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_clause.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-04-01 12:14:08 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-04-01 12:14:16 -0400
commit2306696004dc6b9259a45e76522c01d6ee5d2ee7 (patch)
tree4c81f498369b0b61623377e02f07dbd27456843f /src/backend/parser/parse_clause.c
parenta361c22ebfa8c87683f07f83f55a8456e7892e6d (diff)
downloadpostgresql-2306696004dc6b9259a45e76522c01d6ee5d2ee7.tar.gz
postgresql-2306696004dc6b9259a45e76522c01d6ee5d2ee7.zip
Fix oversight in getParamDescriptions(), and improve comments.
When getParamDescriptions was changed to handle out-of-memory better by cribbing error recovery logic from getRowDescriptions/getAnotherTuple, somebody omitted to copy the stanza about checking for excess data in the message. But you need to do that, since continue'ing out of the switch in pqParseInput3 means no such check gets applied there anymore. Noted while looking at Michael Paquier's patch that made yet another copy of this advance_and_error logic. (This whole business desperately needs refactoring, because I sure don't want to see a dozen copies of this code, but that's where we seem to be headed. What's more, the "suspend parsing on EOF return" convention is a holdover from protocol 2 and shouldn't exist at all in protocol 3, because we don't process partial messages anymore. But for now, just fix the obvious bug.) Also, fix some wrong/missing comments about what the API spec is for these three functions. This doesn't seem worthy of back-patching, even though it's a bug; the case shouldn't ever arise in the field.
Diffstat (limited to 'src/backend/parser/parse_clause.c')
0 files changed, 0 insertions, 0 deletions