| 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 | |
| 126 | private: |
| 127 | /** Which diagnostics area to access. */ |