]>
Commit | Line | Data |
---|---|---|
e1d4be73 JP |
1 | --- postgresql-16.1/src/backend/utils/adt/xml.c.orig 2023-11-06 23:04:27.000000000 +0100 |
2 | +++ postgresql-16.1/src/backend/utils/adt/xml.c 2023-12-22 01:16:10.408867469 +0100 | |
3 | @@ -123,7 +123,11 @@ | |
4 | xmlParserCtxtPtr ctxt); | |
5 | static void xml_errsave(Node *escontext, PgXmlErrorContext *errcxt, | |
6 | int sqlcode, const char *msg); | |
7 | +#if defined(LIBXML_VERSION) && LIBXML_VERSION >= 21200 | |
8 | +static void xml_errorHandler(void *data, const xmlError *error); | |
9 | +#else | |
10 | static void xml_errorHandler(void *data, xmlErrorPtr error); | |
11 | +#endif | |
12 | static int errdetail_for_xml_code(int code); | |
13 | static void chopStringInfoNewlines(StringInfo str); | |
14 | static void appendStringInfoLineSeparator(StringInfo str); | |
15 | @@ -2001,8 +2005,13 @@ | |
16 | /* | |
17 | * Error handler for libxml errors and warnings | |
18 | */ | |
19 | +#if defined(LIBXML_VERSION) && LIBXML_VERSION >= 21200 | |
20 | +static void | |
21 | +xml_errorHandler(void *data, const xmlError *error) | |
22 | +#else | |
23 | static void | |
24 | xml_errorHandler(void *data, xmlErrorPtr error) | |
25 | +#endif | |
26 | { | |
27 | PgXmlErrorContext *xmlerrcxt = (PgXmlErrorContext *) data; | |
28 | xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) error->ctxt; |