| 1 | /* Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. |
| 2 | |
| 3 | This program is free software; you can redistribute it and/or modify |
| 4 | it under the terms of the GNU General Public License as published by |
| 5 | the Free Software Foundation; version 2 of the License. |
| 6 | |
| 7 | This program is distributed in the hope that it will be useful, |
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | GNU General Public License for more details. |
| 11 | |
| 12 | You should have received a copy of the GNU General Public License |
| 13 | along with this program; if not, write to the Free Software |
| 14 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ |
| 15 | |
| 16 | /* |
| 17 | Minimal code to be able to link a unit test. |
| 18 | */ |
| 19 | |
| 20 | #include "my_global.h" |
| 21 | #include "m_ctype.h" |
| 22 | #include "sql_class.h" |
| 23 | #include "sql_show.h" |
| 24 | |
| 25 | struct sql_digest_storage; |
| 26 | |
| 27 | volatile bool ready_to_exit= false; |
| 28 | |
| 29 | uint lower_case_table_names= 0; |
| 30 | CHARSET_INFO *files_charset_info= NULL; |
| 31 | CHARSET_INFO *system_charset_info= NULL; |
| 32 | |
| 33 | void compute_digest_md5(const sql_digest_storage *, unsigned char *) |
| 34 | { |
| 35 | } |
| 36 | |
| 37 | class sys_var { public: enum where { AUTO }; }; |
| 38 | void set_sys_var_value_origin(void *ptr, enum sys_var::where here) |
| 39 | { |
| 40 | } |
| 41 | |
| 42 | enum sys_var::where get_sys_var_value_origin(void *ptr) |
| 43 | { |
| 44 | return sys_var::AUTO; |
| 45 | } |
| 46 | |