| 1 | /* Copyright (c) 2010, 2023, 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-1335 USA */ |
| 23 | |
| 24 | /* |
| 25 | Minimal code to be able to link a unit test. |
| 26 | */ |
| 27 | |
| 28 | #include "my_global.h"cxx . . $ `<file>/include/my_global.h`/ |
| 29 | #include "m_ctype.h"cxx . . $ `<file>/include/m_ctype.h`/ |
| 30 | #include "sql_class.h"cxx . . $ `<file>/sql/sql_class.h`/ |
| 31 | #include "sql_show.h"cxx . . $ `<file>/sql/sql_show.h`/ |
| 32 | |
| 33 | struct system_status_varcxx . . $ system_status_var# global_status_varcxx . . $ global_status_var.; |
| 34 | struct sql_digest_storagecxx . . $ sql_digest_storage#; |
| 35 | |
| 36 | uint lower_case_table_namescxx . . $ lower_case_table_names.= 0; |
| 37 | CHARSET_INFOcxx . . $ CHARSET_INFO# *files_charset_infocxx . . $ files_charset_info.= NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 38 | CHARSET_INFOcxx . . $ CHARSET_INFO# *system_charset_infocxx . . $ system_charset_info.= NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 39 | |
| 40 | void compute_digest_md5cxx . . $ compute_digest_md5(a372f86a79ffe80).(const sql_digest_storagecxx . . $ sql_digest_storage# *, unsigned char *) |
| 41 | { |
| 42 | } |
| 43 | |
| 44 | void reset_status_varscxx . . $ reset_status_vars(49f6e7a06ebc5aa8).() |
| 45 | { |
| 46 | } |
| 47 | |
| 48 | void sql_print_warningcxx . . $ sql_print_warning(326aeb464d16410c).(const char *format, ...) |
| 49 | { |
| 50 | /* Do not pollute the unit test output with annoying messages. */ |
| 51 | } |
| 52 | |
| 53 | class sys_varcxx . . $ sys_var# { public: enum wherecxx . . $ sys_var#where# { AUTOcxx . . $ sys_var#AUTO. }; }; |
| 54 | void set_sys_var_value_origincxx . . $ set_sys_var_value_origin(653913653ca945c8).(void *, enum sys_varcxx . . $ sys_var#::wherecxx . . $ sys_var#where#, const char *) |
| 55 | { |
| 56 | } |
| 57 | |
| 58 | enum sys_varcxx . . $ sys_var#::wherecxx . . $ sys_var#where# get_sys_var_value_origincxx . . $ get_sys_var_value_origin(8090662afa063af3).(void *ptr) |
| 59 | { |
| 60 | return sys_varcxx . . $ sys_var#::AUTOcxx . . $ sys_var#AUTO.; |
| 61 | } |
| 62 | |
| 63 | MY_TIMER_INFOcxx . . $ MY_TIMER_INFO# sys_timer_infocxx . . $ sys_timer_info.; |