mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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.
This commit is contained in:
@ -1,8 +1,12 @@
|
||||
--SQL for XML parser
|
||||
|
||||
CREATE OR REPLACE FUNCTION xml_valid(text) RETURNS bool
|
||||
CREATE OR REPLACE FUNCTION xml_is_well_formed(text) RETURNS bool
|
||||
AS 'MODULE_PATHNAME' LANGUAGE C STRICT IMMUTABLE;
|
||||
|
||||
-- deprecated old name for xml_is_well_formed
|
||||
CREATE OR REPLACE FUNCTION xml_valid(text) RETURNS bool
|
||||
AS 'MODULE_PATHNAME', 'xml_is_well_formed' LANGUAGE C STRICT IMMUTABLE;
|
||||
|
||||
CREATE OR REPLACE FUNCTION xml_encode_special_chars(text) RETURNS text
|
||||
AS 'MODULE_PATHNAME' LANGUAGE C STRICT IMMUTABLE;
|
||||
|
||||
|
Reference in New Issue
Block a user