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

Function get_user_var_real

phx_percona/percona/sql/rpl_handler.cc:55–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55int get_user_var_real(const char *name,
56 double *value, int *null_value)
57{
58 my_bool null_val;
59 user_var_entry *entry=
60 (user_var_entry*) my_hash_search(&current_thd->user_vars,
61 (uchar*) name, strlen(name));
62 if (!entry)
63 return 1;
64 *value= entry->val_real(&null_val);
65 if (null_value)
66 *null_value= null_val;
67 return 0;
68}
69
70int get_user_var_str(const char *name, char *value,
71 size_t len, unsigned int precision, int *null_value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected