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

Commit8d1071e

Browse files
committed
Fix incompatibility with libxml2 >= 2.14
libxml2 has deprecated the members of xmlBuffer, and it is recommendedto access them with dedicated routines. We have only one case in thetree where this shows an impact: xml2/xpath.c where "content" wasgetting directly accessed. The rest of the code looked fine, checkingthe PostgreSQL code with libxml2 close to the top of its "2.14" branch.xmlBufferContent() exists since year 2000 based on a check of theupstream libxml2 tree, so let's switch to it.Like400928b, backpatch all the way down as this can have an impacton all the branches already released once newer versions of libxml2 getmore popular.Reported-by: Walid Ibrahim <walidib@amazon.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/aGdSdcR4QTjEHX6s@paquier.xyzBackpatch-through: 13
1 parent1e00772 commit8d1071e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎contrib/xml2/xpath.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ pgxmlNodeSetToText(xmlNodeSetPtr nodeset,
176176
xmlBufferWriteCHAR(buf,toptagname);
177177
xmlBufferWriteChar(buf,">");
178178
}
179-
result=xmlStrdup(buf->content);
179+
result=xmlStrdup(xmlBufferContent(buf));
180180
xmlBufferFree(buf);
181181
returnresult;
182182
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp