diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-12-24 18:25:58 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-12-24 18:25:58 +0000 |
commit | 57f1630cf096d5e173e5de80f50ad1bf66e15587 (patch) | |
tree | 80b81f60dcfd9a913fa15a6ea38f1642db51dea3 /src/backend/executor/nodeFunctionscan.c | |
parent | e9da20ab4d2f8c34130e624c7c78dffaf3119af4 (diff) | |
download | postgresql-57f1630cf096d5e173e5de80f50ad1bf66e15587.tar.gz postgresql-57f1630cf096d5e173e5de80f50ad1bf66e15587.zip |
Bring some order and sanity to error handling in the xml patch.
Use a TRY block instead of (inadequate) ad-hoc coding to ensure that
libxml is cleaned up after a failure. Report the intended SQLCODE
instead of defaulting to XX000. Avoid risking use of a dangling
pointer by keeping the persistent error buffer in TopMemoryContext.
Be less trusting that error messages don't contain %.
This patch doesn't do anything about changing the way the messages
are put together --- this is just about mechanism.
Diffstat (limited to 'src/backend/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions