-
- Downloads
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.
Showing
- doc/src/sgml/datatype.sgml 43 additions, 3 deletionsdoc/src/sgml/datatype.sgml
- doc/src/sgml/func.sgml 47 additions, 71 deletionsdoc/src/sgml/func.sgml
- src/backend/utils/adt/xml.c 111 additions, 94 deletionssrc/backend/utils/adt/xml.c
- src/include/catalog/catversion.h 2 additions, 2 deletionssrc/include/catalog/catversion.h
- src/include/catalog/pg_proc.h 3 additions, 3 deletionssrc/include/catalog/pg_proc.h
- src/include/utils/xml.h 2 additions, 2 deletionssrc/include/utils/xml.h
- src/test/regress/expected/xml.out 12 additions, 12 deletionssrc/test/regress/expected/xml.out
- src/test/regress/expected/xml_1.out 12 additions, 12 deletionssrc/test/regress/expected/xml_1.out
- src/test/regress/sql/xml.sql 6 additions, 6 deletionssrc/test/regress/sql/xml.sql
Loading
Please register or sign in to comment