| 68 | } |
| 69 | |
| 70 | int get_user_var_str(const char *name, char *value, |
| 71 | size_t len, unsigned int precision, int *null_value) |
| 72 | { |
| 73 | String str; |
| 74 | my_bool null_val; |
| 75 | user_var_entry *entry= |
| 76 | (user_var_entry*) my_hash_search(¤t_thd->user_vars, |
| 77 | (uchar*) name, strlen(name)); |
| 78 | if (!entry) |
| 79 | return 1; |
| 80 | entry->val_str(&null_val, &str, precision); |
| 81 | strncpy(value, str.c_ptr(), len); |
| 82 | if (null_value) |
| 83 | *null_value= null_val; |
| 84 | return 0; |
| 85 | } |
| 86 | |
| 87 | int delegates_init() |
| 88 | { |
nothing calls this directly
no outgoing calls
no test coverage detected