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

Method val_str

sql/item_strfunc.h:688–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686public:
687 Item_func_binary(Item *a) :Item_str_func(a) {}
688 String *val_str(String *a)
689 {
690 DBUG_ASSERT(fixed == 1);
691 String *tmp=args[0]->val_str(a);
692 null_value=args[0]->null_value;
693 if (tmp)
694 tmp->set_charset(&my_charset_bin);
695 return tmp;
696 }
697 virtual void print(String *str, enum_query_type query_type);
698 const char *func_name() const { return "cast_as_binary"; }
699};

Callers

nothing calls this directly

Calls 2

val_strMethod · 0.45
set_charsetMethod · 0.45

Tested by

no test coverage detected