My Project
Classes | Defines | Functions | Variables
item_func.cc File Reference

This file defines all numerical functions. More...

#include "my_global.h"
#include "sql_priv.h"
#include "sql_class.h"
#include "set_var.h"
#include "rpl_slave.h"
#include "sql_show.h"
#include "strfunc.h"
#include "sql_parse.h"
#include "sql_acl.h"
#include "mysqld.h"
#include "rpl_mi.h"
#include "sql_time.h"
#include <m_ctype.h>
#include <hash.h>
#include <time.h>
#include <ft_global.h>
#include <my_bit.h>
#include "sp_head.h"
#include "sp_rcontext.h"
#include "sp.h"
#include "debug_sync.h"
#include <mysql/plugin.h>
#include <mysql/service_thd_wait.h>
#include "rpl_gtid.h"

Classes

class  User_level_lock
class  Interruptible_wait

Defines

#define get_sys_var_safe(type)

Functions

bool check_reserved_words (LEX_STRING *name)
bool eval_const_cond (Item *cond)
double my_double_round (double value, longlong dec, bool dec_unsigned, bool truncate)
uchar * ull_get_key (const User_level_lock *ull, size_t *length, my_bool not_used __attribute__((unused)))
void item_user_lock_init (void)
void item_user_lock_free (void)
void item_user_lock_release (User_level_lock *ull)
Itemget_system_var (THD *thd, enum_var_type var_type, LEX_STRING name, LEX_STRING component)
void my_missing_function_error (const LEX_STRING &token, const char *func_name)
void uuid_short_init ()

Variables

mysql_mutex_t LOCK_user_locks
ulonglong uuid_value

Detailed Description

This file defines all numerical functions.


Define Documentation

#define get_sys_var_safe (   type)
Value:
do { \
  type value; \
  mysql_mutex_lock(&LOCK_global_system_variables); \
  value= *(type*) var->value_ptr(thd, var_type, &component); \
  mysql_mutex_unlock(&LOCK_global_system_variables); \
  cache_present |= GET_SYS_VAR_CACHE_LONG; \
  used_query_id= thd->query_id; \
  cached_llval= null_value ? 0 : (longlong) value; \
  cached_null_value= null_value; \
  return cached_llval; \
} while (0)

Function Documentation

bool eval_const_cond ( Item cond)
Returns:
TRUE if item is a constant
Item* get_system_var ( THD *  thd,
enum_var_type  var_type,
LEX_STRING  name,
LEX_STRING  component 
)

Return value of an system variable base[.name] as a constant item.

Parameters:
thdThread handler
var_typeglobal / session
nameName of base or system variable
componentComponent.
Note:
If component.str = 0 then the variable name is in 'name'
Returns:
  • 0 : error
  • # : constant item
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines