summaryrefslogtreecommitdiff
path: root/sql/item_create.cc
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2005-12-21 17:13:52 +0400
committerunknown <bar@mysql.com>2005-12-21 17:13:52 +0400
commit5e4c3ce6822cac4313cd457136ea8827fce37a77 (patch)
treef1892af36f586e6b88e05253d3a7310eb806f577 /sql/item_create.cc
parentf78594c028dbb33b740c7bb3d9b310568b64508e (diff)
downloadmariadb-git-5e4c3ce6822cac4313cd457136ea8827fce37a77.tar.gz
Adding XPath support: ExtractValue and UpdateXML functions.
libmysqld/Makefile.am: sql/Makefile.am: Adding new source files. Adding new file into build process. include/my_xml.h: strings/xml.c: Adding new XML parse flags to skip text normalization and to use relative tag names. Adding enum for XML token types. sql/lex.h: Making parser aware of new SQL functions. sqll/item_create.h, sql/item_create.cc: Adding creators for ExtractValue and UpdateXML. sql/item.h: Adding new Item types: nodeset and nodeset comparator. sql/item_xmlfunc.h sql/item_xmlfunc.cc Adding new classes implementing XPath functions. mysql-test/t/xml.test, mysql-test/r/xml.result: New files: adding test case include/my_xml.h: Adding ExtractValue and UpdateXML functions. Adding XML parser flags and enum for XML token types. sql/Makefile.am: Adding new source files. sql/item.h: Adding new Item types: nodeset and nodeset comparator. sql/item_create.cc: Adding creators for ExtractValue and UpdateXML. sql/item_create.h: Adding creators for ExtractValue and UpdateXML. sql/lex.h: Make parse aware of new SQL functions. strings/xml.c: Adding new flags to skip text normalization and to use relative tag names. libmysqld/Makefile.am: Adding new file into build process.
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r--sql/item_create.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc
index e8435be2614..17f1fbca471 100644
--- a/sql/item_create.cc
+++ b/sql/item_create.cc
@@ -502,6 +502,16 @@ Item *create_func_quote(Item* a)
return new Item_func_quote(a);
}
+Item *create_func_xml_extractvalue(Item *a, Item *b)
+{
+ return new Item_func_xml_extractvalue(a, b);
+}
+
+Item *create_func_xml_update(Item *a, Item *b, Item *c)
+{
+ return new Item_func_xml_update(a, b, c);
+}
+
#ifdef HAVE_SPATIAL
Item *create_func_as_wkt(Item *a)
{