From a175314c3e5827eb193872241446f2f8f5c9d33c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 20:07:14 +0200 Subject: Adding upstream version 1:10.5.12. Signed-off-by: Daniel Baumann --- storage/mroonga/mrn_mysql.h | 74 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 storage/mroonga/mrn_mysql.h (limited to 'storage/mroonga/mrn_mysql.h') diff --git a/storage/mroonga/mrn_mysql.h b/storage/mroonga/mrn_mysql.h new file mode 100644 index 00000000..9573caa9 --- /dev/null +++ b/storage/mroonga/mrn_mysql.h @@ -0,0 +1,74 @@ +/* -*- c-basic-offset: 2 -*- */ +/* + Copyright(C) 2011-2013 Kouhei Sutou + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA +*/ + +#ifndef MRN_MYSQL_H_ +#define MRN_MYSQL_H_ + +#ifdef HAVE_CONFIG_H +# include +/* We need to undefine them because my_config.h defines them. :< */ +# undef VERSION +# undef PACKAGE +# undef PACKAGE_BUGREPORT +# undef PACKAGE_NAME +# undef PACKAGE_STRING +# undef PACKAGE_TARNAME +# undef PACKAGE_VERSION +#endif + +#include + +#ifdef FORCE_FAST_MUTEX_DISABLED +# ifdef MY_PTHREAD_FASTMUTEX +# undef MY_PTHREAD_FASTMUTEX +# endif +#endif + +#define MYSQL_SERVER 1 +#include + +#ifdef MARIADB_BASE_VERSION +# define MRN_MARIADB_P 1 +#endif + +#include +#include +#if (!defined(MRN_MARIADB_P) && MYSQL_VERSION_ID < 80002) +# include +#endif +#include +#include + +#define MRN_MESSAGE_BUFFER_SIZE 1024 + +#define MRN_DBUG_ENTER_FUNCTION() DBUG_ENTER(__FUNCTION__) + +#if !defined(DBUG_OFF) && !defined(_lint) +# define MRN_DBUG_ENTER_METHOD() \ + char method_name[MRN_MESSAGE_BUFFER_SIZE]; \ + method_name[0] = '\0'; \ + strcat(method_name, MRN_CLASS_NAME); \ + strcat(method_name, "::"); \ + strcat(method_name, __FUNCTION__); \ + DBUG_ENTER(method_name) +#else +# define MRN_DBUG_ENTER_METHOD() MRN_DBUG_ENTER_FUNCTION() +#endif + +#endif /* MRN_MYSQL_H_ */ -- cgit v1.2.3