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

Method val_str

sql/item_timefunc.h:114–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 double val_real()
113 { DBUG_ASSERT(fixed == 1); return (double) Item_func_month::val_int(); }
114 String *val_str(String *str)
115 {
116 longlong nr= val_int();
117 if (null_value)
118 return 0;
119 str->set(nr, collation.collation);
120 return str;
121 }
122 const char *func_name() const { return "month"; }
123 enum Item_result result_type () const { return INT_RESULT; }
124

Callers

nothing calls this directly

Calls 2

val_intFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected