|
7 | 7 | * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California
|
9 | 9 | *
|
10 |
| - * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.61 2007/11/2712:21:05 petere Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.62 2007/11/2718:13:01 tgl Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
@@ -536,7 +536,7 @@ xmltotext(PG_FUNCTION_ARGS)
|
536 | 536 | xmltype*data=PG_GETARG_XML_P(0);
|
537 | 537 |
|
538 | 538 | /* It's actually binary compatible. */
|
539 |
| -return (text*)data; |
| 539 | +PG_RETURN_TEXT_P((text*)data); |
540 | 540 | }
|
541 | 541 |
|
542 | 542 |
|
|