MCPcopy Create free account
hub / github.com/Tencent/phxsql / get_user_var_str

Function get_user_var_str

phx_percona/percona/sql/rpl_handler.cc:70–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70int 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(&current_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
87int delegates_init()
88{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected