1 /* Copyright (c) 2010, 2021, Oracle and/or its affiliates. All rights
2    reserved.
3 
4   This program is free software; you can redistribute it and/or modify
5   it under the terms of the GNU General Public License, version 2.0,
6   as published by the Free Software Foundation.
7 
8   This program is also distributed with certain software (including
9   but not limited to OpenSSL) that is licensed under separate terms,
10   as designated in a particular file or component or in included license
11   documentation.  The authors of MySQL hereby grant you an additional
12   permission to link the program and your derivative works with the
13   separately licensed software that they have included with MySQL.
14 
15   This program is distributed in the hope that it will be useful,
16   but WITHOUT ANY WARRANTY; without even the implied warranty of
17   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18   GNU General Public License, version 2.0, for more details.
19 
20   You should have received a copy of the GNU General Public License
21   along with this program; if not, write to the Free Software
22   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
23 
24 /*
25   Minimal code to be able to link a unit test.
26 */
27 
28 #include "my_global.h"
29 #include "m_ctype.h"
30 #include "sql_class.h"
31 #include "sql_show.h"
32 
33 my_bool show_compatibility_56= FALSE;
34 struct system_status_var global_status_var;
35 struct sql_digest_storage;
36 volatile bool ready_to_exit= false;
37 
38 uint lower_case_table_names= 0;
39 CHARSET_INFO *files_charset_info= NULL;
40 CHARSET_INFO *system_charset_info= NULL;
41 
compute_digest_md5(const sql_digest_storage *,unsigned char *)42 void compute_digest_md5(const sql_digest_storage *, unsigned char *)
43 {
44 }
45 
reset_status_vars()46 void reset_status_vars()
47 {
48 }
49 
sql_print_warning(const char * format,...)50 void sql_print_warning(const char *format, ...)
51 {
52   /* Do not pollute the unit test output with annoying messages. */
53 }
54 
55 my_bool
acl_is_utility_user(const char *,const char *,const char *)56 acl_is_utility_user(const char *, const char *, const char *)
57 {
58   return FALSE;
59 }
60