@@ -4534,13 +4534,7 @@ XmlTableFetchRow(TableFuncScanState *state)
4534
4534
4535
4535
xtCxt = GetXmlTableBuilderPrivateData (state , "XmlTableFetchRow" );
4536
4536
4537
- /*
4538
- * XmlTable returns table - set of composite values. The error context, is
4539
- * used for producement more values, between two calls, there can be
4540
- * created and used another libxml2 error context. It is libxml2 global
4541
- * value, so it should be refreshed any time before any libxml2 usage,
4542
- * that is finished by returning some value.
4543
- */
4537
+ /* Propagate our own error context to libxml2 */
4544
4538
xmlSetStructuredErrorFunc ((void * ) xtCxt -> xmlerrcxt , xml_errorHandler );
4545
4539
4546
4540
if (xtCxt -> xpathobj == NULL )
@@ -4594,7 +4588,7 @@ XmlTableGetValue(TableFuncScanState *state, int colnum,
4594
4588
xtCxt -> xpathobj -> type == XPATH_NODESET &&
4595
4589
xtCxt -> xpathobj -> nodesetval != NULL );
4596
4590
4597
- /* Propagate context related error context to libxml2 */
4591
+ /* Propagate our own error context to libxml2 */
4598
4592
xmlSetStructuredErrorFunc ((void * ) xtCxt -> xmlerrcxt , xml_errorHandler );
4599
4593
4600
4594
* isnull = false;
@@ -4737,7 +4731,7 @@ XmlTableDestroyOpaque(TableFuncScanState *state)
4737
4731
4738
4732
xtCxt = GetXmlTableBuilderPrivateData (state , "XmlTableDestroyOpaque" );
4739
4733
4740
- /* Propagate context related error context to libxml2 */
4734
+ /* Propagate our own error context to libxml2 */
4741
4735
xmlSetStructuredErrorFunc ((void * ) xtCxt -> xmlerrcxt , xml_errorHandler );
4742
4736
4743
4737
if (xtCxt -> xpathscomp != NULL )
0 commit comments