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

Method evaluate

sql/sql_get_diagnostics.h:114–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 */
113 template <typename Diag_item, typename Context>
114 bool evaluate(THD *thd, Diag_item *diag_item, Context ctx)
115 {
116 Item *value;
117
118 /* Get this item's value. */
119 if (! (value= diag_item->get_value(thd, ctx)))
120 return true;
121
122 /* Set variable/parameter value. */
123 return diag_item->set_value(thd, &value);
124 }
125
126private:
127 /** Which diagnostics area to access. */

Callers

nothing calls this directly

Calls 1

set_valueMethod · 0.45

Tested by

no test coverage detected