boolset_transaction;// if related to SET TRANSACTION statement . if false , it will be execute "SET varname = varvalue" . If true, "SET varname varvalue"
boolspecial_handling;// if true, some special handling is required
boolis_number;// if true, the variable is a number. Special cases should be checked
boolis_bool;// if true, the variable is a boolean. Special cases should be checked
char*set_variable_name;// what variable name (or string) will be used when setting it to backend
char*internal_variable_name;// variable name as displayed in admin , WITHOUT "default_"
char*default_value;// default value
@ -969,29 +971,45 @@ extern __thread unsigned int g_seed;
// field_3: if the variable needs to be quoted
// field_4: if related to SET TRANSACTION statement . if false , it will be execute "SET varname = varvalue" . If true, "SET varname varvalue"
// field_5: if true, some special handling is required
// field_6: what variable name (or string) will be used when setting it to backend
// field_7: variable name as displayed in admin , WITHOUT "default_"
// field_8: default value
// field_6: if true, the variable is a number. Special cases should be checked
// field_7: if true, the variable is a boolean. Special cases should be checked
// field_8: what variable name (or string) will be used when setting it to backend
// field_9: variable name as displayed in admin , WITHOUT "default_"
// field_10: default value
/*
typedefstruct{
enumvariable_nameidx;// index number
enumsession_statusstatus;// what status should be changed after setting this variables
boolquote;// if the variable needs to be quoted
boolset_transaction;// if related to SET TRANSACTION statement . if false , it will be execute "SET varname = varvalue" . If true, "SET varname varvalue"
boolspecial_handling;// if true, some special handling is required
boolis_number;// if true, the variable is a number. Special cases should be checked
boolis_bool;// if true, the variable is a boolean. Special cases should be checked
char*set_variable_name;// what variable name (or string) will be used when setting it to backend
char*internal_variable_name;// variable name as displayed in admin , WITHOUT "default_"
char*default_value;// default value
}mysql_variable_st;
*/
mysql_variable_stmysql_tracked_variables[]{
{SQL_CHARACTER_SET,SETTING_CHARSET,false,true,false,(char*)"CHARSET",(char*)"CHARSET",(char*)"UTF8"},// should be before SQL_CHARACTER_SET_RESULTS
{SQL_CHARACTER_SET,SETTING_CHARSET,false,true,false,false,false,(char*)"CHARSET",(char*)"CHARSET",(char*)"UTF8"},// should be before SQL_CHARACTER_SET_RESULTS