mirror of
https://github.com/MariaDB/server.git
synced 2025-07-21 18:58:29 +02:00

Contains Spiral patches: - Spiral Patch 022: 022_mariadb-10.2.0.auto_increment.diff MDEV-7720 - Spiral Patch 030: 030_mariadb-10.2.0.partition_auto_inc_init.diff MDEV-7726 These patches have the following differences compared to the original patches: - Added the new #defines for the feature in spd_environ.h instead of in handler.h because these #defines are needed by Spider and are not needed by the server. - Cleaned up code related to the removed variable m_need_info_for_auto_inc . Changed variable assignment in lock_auto_increment() and unlock_auto_increment() so that the assignments are done under locks. - Added a test case. - Added test result changes resulting from a bug that was fixed by these patches. Original author: Kentoku SHIBA First reviewer: Jacob Mathew Second reviewer: Michael Widenius
37 lines
1.3 KiB
C
37 lines
1.3 KiB
C
/* Copyright (C) 2008-2015 Kentoku Shiba & 2017 MariaDB corp
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; version 2 of the License.
|
|
|
|
This program 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 General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
|
|
/*
|
|
Define functinolity offered by MySQL or MariaDB
|
|
*/
|
|
|
|
#ifndef SPD_ENVIRON_INCLUDED
|
|
|
|
#if (defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100000)
|
|
#define SPIDER_HANDLER_START_BULK_INSERT_HAS_FLAGS
|
|
#endif
|
|
|
|
#if MYSQL_VERSION_ID >= 100204
|
|
#define HANDLER_HAS_TOP_TABLE_FIELDS
|
|
#define HANDLER_HAS_DIRECT_AGGREGATE
|
|
#define PARTITION_HAS_EXTRA_ATTACH_CHILDREN
|
|
#define PARTITION_HAS_GET_CHILD_HANDLERS
|
|
#define PARTITION_HAS_EXTRA_ATTACH_CHILDREN
|
|
#define PARTITION_HAS_GET_CHILD_HANDLERS
|
|
#define HA_EXTRA_HAS_STARTING_ORDERED_INDEX_SCAN
|
|
#define HANDLER_HAS_NEED_INFO_FOR_AUTO_INC
|
|
#define HANDLER_HAS_CAN_USE_FOR_AUTO_INC_INIT
|
|
#endif
|
|
#endif /* SPD_ENVIRON_INCLUDED */
|