If item is a node set, then casts it to boolean, otherwise returns the item itself. */
| 758 | otherwise returns the item itself. |
| 759 | */ |
| 760 | static 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 | /* |
no test coverage detected