diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2007-05-21 17:10:29 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2007-05-21 17:10:29 +0000 |
commit | 3963574d13383b4f377ab054e47e4af20cb75e7d (patch) | |
tree | c938be981d3511412f46d640f3f6226796cb8589 /src/include/utils/xml.h | |
parent | 0c644d2c3d50a6a9f8b3821d1fe6b0f0753804b1 (diff) | |
download | postgresql-3963574d13383b4f377ab054e47e4af20cb75e7d.tar.gz postgresql-3963574d13383b4f377ab054e47e4af20cb75e7d.zip |
XPath fixes:
- Function renamed to "xpath".
- Function is now strict, per discussion.
- Return empty array in case when XPath expression detects nothing
(previously, NULL was returned in such case), per discussion.
- (bugfix) Work with fragments with prologue: select xpath('/a',
'<?xml version="1.0"?><a /><b />'); // now XML datum is always wrapped
with dummy <x>...</x>, XML prologue simply goes away (if any).
- Some cleanup.
Nikolay Samokhvalov
Some code cleanup and documentation work by myself.
Diffstat (limited to 'src/include/utils/xml.h')
-rw-r--r-- | src/include/utils/xml.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/utils/xml.h b/src/include/utils/xml.h index 15ba500d507..8e750f764f8 100644 --- a/src/include/utils/xml.h +++ b/src/include/utils/xml.h @@ -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/include/utils/xml.h,v 1.18 2007/04/01 09:00:26 petere Exp $ + * $PostgreSQL: pgsql/src/include/utils/xml.h,v 1.19 2007/05/21 17:10:29 petere Exp $ * *------------------------------------------------------------------------- */ @@ -36,7 +36,7 @@ extern Datum xmlconcat2(PG_FUNCTION_ARGS); extern Datum texttoxml(PG_FUNCTION_ARGS); extern Datum xmltotext(PG_FUNCTION_ARGS); extern Datum xmlvalidate(PG_FUNCTION_ARGS); -extern Datum xmlpath(PG_FUNCTION_ARGS); +extern Datum xpath(PG_FUNCTION_ARGS); extern Datum table_to_xml(PG_FUNCTION_ARGS); extern Datum query_to_xml(PG_FUNCTION_ARGS); |