#include <sql_priv.h>
#include "set_var.h"
Go to the source code of this file.
Detailed Description
"protected" interface to sys_var - server configuration variables.
This header is included by files implementing support and utility functions of sys_var's (set_var.cc) and files implementing classes in the sys_var hierarchy (sql_plugin.cc)
Definition in file sys_vars_shared.h.
Function Documentation
sys_var* intern_find_sys_var |
( |
const char * |
str, |
|
|
uint |
length |
|
) |
| |
Find a user set-table variable.
- Parameters
-
str | Name of system variable to find |
length | Length of variable. zero means that we should use strlen() on the variable |
- Return values
-
pointer | pointer to variable definitions |
0 | Unknown variable (error message is given) |
Definition at line 518 of file set_var.cc.
bool throw_bounds_warning |
( |
THD * |
thd, |
|
|
const char * |
name, |
|
|
bool |
fixed, |
|
|
bool |
is_unsigned, |
|
|
longlong |
v |
|
) |
| |
Throw warning (error in STRICT mode) if value for variable needed bounding. Plug-in interface also uses this.
- Parameters
-
thd | thread handle |
name | variable's name |
fixed | did we have to correct the value? (throw warn/err if so) |
is_unsigned | is value's type unsigned? |
v | variable's value |
- Return values
-
true | on error, false otherwise (warning or ok) |
Definition at line 296 of file set_var.cc.