This is an automated email from the ASF dual-hosted git repository.

oppenheimer01 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit 2876927f6a80140331646dae3a9211e82c14f7a2
Author: Michael Paquier <[email protected]>
AuthorDate: Wed Jan 17 08:53:16 2024 +0900

    xml2: Replace deprecated routines with recommended ones
    
    Some functions are used in the tree and are currently marked as
    deprecated by upstream.  This commit refreshes the code to use the
    recommended functions, leading to the following changes:
    - xmlSubstituteEntitiesDefault() is gone, and needs to be replaced with
    XML_PARSE_NOENT for the paths doing the parsing.
    - xmlParseMemory() -> xmlReadMemory().
    
    These functions, as well as more functions setting global states, have
    been officially marked as deprecated by upstream in August 2022.  Their
    replacements exist since the 2001-ish area, as far as I have checked,
    so that should be safe.
    
    Author: Dmitry Koval
    Discussion: https://postgr.es/m/[email protected]
---
 contrib/xml2/xpath.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/contrib/xml2/xpath.c b/contrib/xml2/xpath.c
index f1f8b732f80..d79142aab79 100644
--- a/contrib/xml2/xpath.c
+++ b/contrib/xml2/xpath.c
@@ -74,7 +74,6 @@ pgxml_parser_init(PgXmlStrictness strictness)
        /* Initialize libxml */
        xmlInitParser();
 
-       xmlSubstituteEntitiesDefault(1);
 
        return xmlerrcxt;
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to