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

Function get_user_var_int

phx_percona/percona/sql/rpl_handler.cc:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38} Trans_binlog_info;
39
40int get_user_var_int(const char *name,
41 long long int *value, int *null_value)
42{
43 my_bool null_val;
44 user_var_entry *entry=
45 (user_var_entry*) my_hash_search(&current_thd->user_vars,
46 (uchar*) name, strlen(name));
47 if (!entry)
48 return 1;
49 *value= entry->val_int(&null_val);
50 if (null_value)
51 *null_value= null_val;
52 return 0;
53}
54
55int get_user_var_real(const char *name,
56 double *value, int *null_value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected