diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2007-11-27 12:21:05 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2007-11-27 12:21:05 +0000 |
commit | 7888b52076562ba770ccfd863dc3c3c984788703 (patch) | |
tree | c6522ca7da2ad7fdd64e8183bae2d94655f01ec2 /src/backend/utils/adt/xml.c | |
parent | 542d04e17944f8ceb36fc33061fc83d06efbd999 (diff) | |
download | postgresql-7888b52076562ba770ccfd863dc3c3c984788703.tar.gz postgresql-7888b52076562ba770ccfd863dc3c3c984788703.zip |
Make casts from xml to text independent of the XML option setting, thus
immutable and indexable. Also fix the volatility settings of some other
XML-related functions.
Diffstat (limited to 'src/backend/utils/adt/xml.c')
-rw-r--r-- | src/backend/utils/adt/xml.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/utils/adt/xml.c b/src/backend/utils/adt/xml.c index 777910791aa..07ca7a8e780 100644 --- a/src/backend/utils/adt/xml.c +++ b/src/backend/utils/adt/xml.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.60 2007/11/25 12:08:11 petere Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.61 2007/11/27 12:21:05 petere Exp $ * *------------------------------------------------------------------------- */ @@ -535,7 +535,8 @@ xmltotext(PG_FUNCTION_ARGS) { xmltype *data = PG_GETARG_XML_P(0); - PG_RETURN_TEXT_P(xmltotext_with_xmloption(data, xmloption)); + /* It's actually binary compatible. */ + return (text *) data; } |