Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita9f66f9

Browse files
committed
Fix XMLTABLE on older libxml2
libxml2 older than 2.9.1 does not have xmlXPathSetContextNode (releasedin 2013, so reasonable platforms have trouble). That function is fairlytrivial, so I have inlined it in the one added caller. This passestests on my machine; let's see what the buildfarm thinks about it.Per joint complaint from Tom Lane and buildfarm.
1 parent0d130c7 commita9f66f9

File tree

1 file changed

+1
-1
lines changed
  • src/backend/utils/adt

1 file changed

+1
-1
lines changed

‎src/backend/utils/adt/xml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4431,7 +4431,7 @@ XmlTableGetValue(TableFuncScanState *state, int colnum,
44314431
PG_TRY();
44324432
{
44334433
/* Set current node as entry point for XPath evaluation */
4434-
xmlXPathSetContextNode(cur,xtCxt->xpathcxt);
4434+
xtCxt->xpathcxt->node=cur;
44354435

44364436
/* Evaluate column path */
44374437
xpathobj=xmlXPathCompiledEval(xtCxt->xpathscomp[colnum],xtCxt->xpathcxt);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp