summaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-11-23 18:24:26 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2013-11-23 18:25:00 -0500
commit3482f29869b170fe07cae8d3063f46b21b586f7f (patch)
tree99744437313711781cd55cc6e5f454353042ac4a /src/tutorial/funcs.source
parent240766a6ecbb2e523fe0a2a43feb949f6fe6521d (diff)
Ensure _dosmaperr() actually sets errno correctly.
If logging is enabled, either ereport() or fprintf() might stomp on errno internally, causing this function to return the wrong result. That might only end in a misleading error report, but in any code that's examining errno to decide what to do next, the consequences could be far graver. This has been broken since the very first version of this file in 2006 ... it's a bit astonishing that we didn't identify this long ago. Reported by Amit Kapila, though this isn't his proposed fix.
Diffstat (limited to 'src/tutorial/funcs.source')
0 files changed, 0 insertions, 0 deletions