File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3868,7 +3868,7 @@ xml_xmlnodetoxmltype(xmlNodePtr cur, PgXmlErrorContext *xmlerrcxt)
38683868
38693869 result = xmlBuffer_to_xmltype (buf );
38703870 }
3871- PG_FINALLY ()
3871+ PG_FINALLY ();
38723872 {
38733873 if (nodefree )
38743874 nodefree (cur_copy );
Original file line number Diff line number Diff line change @@ -338,14 +338,16 @@ extern PGDLLIMPORT ErrorContextCallback *error_context_stack;
338338 } \
339339 else \
340340 _do_rethrow = true; \
341- {
341+ { \
342+ PG_exception_stack = _save_exception_stack; \
343+ error_context_stack = _save_context_stack
342344
343345#define PG_END_TRY () \
344346 } \
345- PG_exception_stack = _save_exception_stack; \
346- error_context_stack = _save_context_stack; \
347347 if (_do_rethrow) \
348348 PG_RE_THROW(); \
349+ PG_exception_stack = _save_exception_stack; \
350+ error_context_stack = _save_context_stack; \
349351 } while (0)
350352
351353/*
You can’t perform that action at this time.
0 commit comments