MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / nodeset2bool

Function nodeset2bool

sql/item_xmlfunc.cc:760–765  ·  view source on GitHub ↗

If item is a node set, then casts it to boolean, otherwise returns the item itself. */

Source from the content-addressed store, hash-verified

758 otherwise returns the item itself.
759*/
760static Item* nodeset2bool(MY_XPATH *xpath, Item *item)
761{
762 if (item->type() == Item::XPATH_NODESET)
763 return new Item_xpath_cast_bool(item, xpath->pxml);
764 return item;
765}
766
767
768/*

Calls 1

typeMethod · 0.45

Tested by

no test coverage detected