92
82
int find_string_in_array(LEX_STRING * const haystack, LEX_STRING * const needle,
93
83
const CHARSET_INFO * const cs);
89
extern const CHARSET_INFO *system_charset_info;
90
extern const CHARSET_INFO *files_charset_info ;
91
extern const CHARSET_INFO *table_alias_charset;
100
93
extern char *drizzle_tmpdir;
101
94
extern const LEX_STRING command_name[];
102
extern const char *first_keyword, *my_localhost, *delayed_user, *binary_keyword;
103
extern const char *in_left_expr_name, *in_additional_cond, *in_having_cond;
104
extern const char * const TRG_EXT;
105
extern const char * const TRN_EXT;
95
extern const char *first_keyword;
96
extern const char *binary_keyword;
97
extern const char *in_left_expr_name;
98
extern const char *in_additional_cond;
99
extern const char *in_having_cond;
106
100
extern char language[FN_REFLEN];
107
extern char glob_hostname[FN_REFLEN], drizzle_home[FN_REFLEN];
108
extern char pidfile_name[FN_REFLEN], system_time_zone[30];
101
extern char glob_hostname[FN_REFLEN];
102
extern char drizzle_home[FN_REFLEN];
103
extern char pidfile_name[FN_REFLEN];
104
extern char system_time_zone[30];
109
105
extern char *opt_tc_log_file;
110
106
extern const double log_10[309];
111
107
extern uint64_t log_10_int[20];
112
extern uint64_t keybuff_size;
113
108
extern uint64_t session_startup_options;
114
109
extern uint32_t thread_id;
115
110
extern uint64_t aborted_threads;
116
111
extern uint64_t aborted_connects;
117
extern uint64_t slow_launch_threads;
118
112
extern uint64_t table_cache_size;
119
113
extern uint64_t table_def_size;
120
114
extern uint64_t max_connect_errors;
121
115
extern uint32_t connect_timeout;
122
116
extern uint32_t back_log;
123
117
extern pid_t current_pid;
124
extern uint64_t expire_logs_days;
125
extern uint64_t tc_log_max_pages_used;
126
extern uint64_t tc_log_page_size;
127
extern uint64_t opt_tc_log_size;
128
extern uint64_t tc_log_page_waits;
129
extern bool opt_innodb;
130
extern uint32_t test_flags,ha_open_options;
131
extern uint32_t drizzled_tcp_port, dropping_tables;
118
extern uint32_t test_flags;
119
extern uint32_t ha_open_options;
120
extern uint32_t drizzled_tcp_port;
121
extern uint32_t dropping_tables;
132
122
extern uint32_t delay_key_write_options;
133
extern bool opt_endinfo, using_udf_functions;
123
extern bool opt_endinfo;
134
124
extern bool locked_in_memory;
135
extern bool using_update_log, server_id_supplied;
136
extern ulong log_output_options;
137
extern bool opt_character_set_client_handshake;
138
extern bool volatile abort_loop, shutdown_in_progress;
139
extern uint32_t volatile thread_running, global_read_lock;
140
extern bool opt_safe_user_create;
141
extern bool opt_no_mix_types;
142
extern bool opt_safe_show_db, opt_myisam_use_mmap;
125
extern bool volatile abort_loop;
126
extern bool volatile shutdown_in_progress;
127
extern uint32_t volatile thread_running;
128
extern uint32_t volatile global_read_lock;
143
129
extern bool opt_readonly;
144
130
extern char* opt_secure_file_priv;
145
extern bool opt_noacl;
146
extern bool opt_old_style_user_limits;
147
131
extern char *default_tz_name;
149
extern TableList general_log, slow_log;
150
133
extern FILE *stderror_file;
151
extern pthread_mutex_t LOCK_create_db, LOCK_open,
152
LOCK_thread_count,LOCK_user_locks, LOCK_status,
153
LOCK_global_read_lock,
154
LOCK_global_system_variables;
134
extern pthread_mutex_t LOCK_create_db;
135
extern pthread_mutex_t LOCK_open;
136
extern pthread_mutex_t LOCK_thread_count;
137
extern pthread_mutex_t LOCK_status;
138
extern pthread_mutex_t LOCK_global_read_lock;
139
extern pthread_mutex_t LOCK_global_system_variables;
156
141
extern pthread_rwlock_t LOCK_system_variables_hash;
157
extern pthread_cond_t COND_refresh, COND_thread_count;
142
extern pthread_cond_t COND_refresh;
143
extern pthread_cond_t COND_thread_count;
158
144
extern pthread_cond_t COND_global_read_lock;
159
145
extern pthread_attr_t connection_attrib;
160
extern std::vector<Session*> session_list;
146
extern std::vector<Session *> session_list;
161
147
extern String my_empty_string;
162
148
extern const String my_null_string;
163
149
extern SHOW_VAR status_vars[];
164
150
extern struct system_variables max_system_variables;
165
151
extern struct system_status_var global_status_var;
166
extern struct rand_struct sql_rand;
168
153
extern Table *unused_tables;
169
154
extern const char* any_db;
170
155
extern struct my_option my_long_options[];
171
extern uint8_t uc_update_queries[SQLCOM_END+1];
172
156
extern std::bitset<5> sql_command_flags[];
173
extern TYPELIB log_output_typelib;
175
158
extern StorageEngine *myisam_engine;
176
159
extern StorageEngine *heap_engine;