aboutsummaryrefslogtreecommitdiff
path: root/contrib/xml2/xpath.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-09-16 16:18:11 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-09-16 16:18:11 +0000
commit1246d797e4b21e5bf4267e8b663057b92258b728 (patch)
treec88e5e616d86090aabc9ee1fb503b71946544c86 /contrib/xml2/xpath.c
parent801cbe3310bc52c0ab41ec66bfe3893a16255189 (diff)
downloadpostgresql-1246d797e4b21e5bf4267e8b663057b92258b728.tar.gz
postgresql-1246d797e4b21e5bf4267e8b663057b92258b728.zip
Rename xml_valid() to xml_is_well_formed(), but provide a temporary
alias with the old name for backwards compatibility. Per discussion, the old name is actively wrong because validity and well-formedness have different meanings in XML.
Diffstat (limited to 'contrib/xml2/xpath.c')
-rw-r--r--contrib/xml2/xpath.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/xml2/xpath.c b/contrib/xml2/xpath.c
index 01f1976ab61..cc830322193 100644
--- a/contrib/xml2/xpath.c
+++ b/contrib/xml2/xpath.c
@@ -42,7 +42,7 @@ xmlChar *pgxml_texttoxmlchar(text *textstring);
static xmlXPathObjectPtr pgxml_xpath(text *document, xmlChar * xpath);
-Datum xml_valid(PG_FUNCTION_ARGS);
+Datum xml_is_well_formed(PG_FUNCTION_ARGS);
Datum xml_encode_special_chars(PG_FUNCTION_ARGS);
Datum xpath_nodeset(PG_FUNCTION_ARGS);
Datum xpath_string(PG_FUNCTION_ARGS);
@@ -166,12 +166,12 @@ pgxml_parser_init()
/* Returns true if document is well-formed */
-PG_FUNCTION_INFO_V1(xml_valid);
+PG_FUNCTION_INFO_V1(xml_is_well_formed);
Datum
-xml_valid(PG_FUNCTION_ARGS)
+xml_is_well_formed(PG_FUNCTION_ARGS)
{
- /* called as xml_valid(document) */
+ /* called as xml_is_well_formed(document) */
xmlDocPtr doctree;
text *t = PG_GETARG_TEXT_P(0); /* document buffer */
int32 docsize = VARSIZE(t) - VARHDRSZ;