Commit b49154b3 authored by Michael Paquier's avatar Michael Paquier

Simplify some comments in xml.c

Author: Justin Pryzby
Discussion: https://postgr.es/m/X/Ff7jfnvJUab013@paquier.xyz
parent a271a1b5
...@@ -4534,13 +4534,7 @@ XmlTableFetchRow(TableFuncScanState *state) ...@@ -4534,13 +4534,7 @@ XmlTableFetchRow(TableFuncScanState *state)
xtCxt = GetXmlTableBuilderPrivateData(state, "XmlTableFetchRow"); xtCxt = GetXmlTableBuilderPrivateData(state, "XmlTableFetchRow");
/* /* Propagate our own error context to libxml2 */
* XmlTable returns table - set of composite values. The error context, is
* used for producement more values, between two calls, there can be
* created and used another libxml2 error context. It is libxml2 global
* value, so it should be refreshed any time before any libxml2 usage,
* that is finished by returning some value.
*/
xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler); xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler);
if (xtCxt->xpathobj == NULL) if (xtCxt->xpathobj == NULL)
...@@ -4594,7 +4588,7 @@ XmlTableGetValue(TableFuncScanState *state, int colnum, ...@@ -4594,7 +4588,7 @@ XmlTableGetValue(TableFuncScanState *state, int colnum,
xtCxt->xpathobj->type == XPATH_NODESET && xtCxt->xpathobj->type == XPATH_NODESET &&
xtCxt->xpathobj->nodesetval != NULL); xtCxt->xpathobj->nodesetval != NULL);
/* Propagate context related error context to libxml2 */ /* Propagate our own error context to libxml2 */
xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler); xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler);
*isnull = false; *isnull = false;
...@@ -4737,7 +4731,7 @@ XmlTableDestroyOpaque(TableFuncScanState *state) ...@@ -4737,7 +4731,7 @@ XmlTableDestroyOpaque(TableFuncScanState *state)
xtCxt = GetXmlTableBuilderPrivateData(state, "XmlTableDestroyOpaque"); xtCxt = GetXmlTableBuilderPrivateData(state, "XmlTableDestroyOpaque");
/* Propagate context related error context to libxml2 */ /* Propagate our own error context to libxml2 */
xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler); xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler);
if (xtCxt->xpathscomp != NULL) if (xtCxt->xpathscomp != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment