1/* Copyright (C) 2008-2017 Kentoku Shiba & 2017 MariaDB corp
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
15
16/*
17 Define functionality offered by MySQL or MariaDB
18*/
19
20#ifndef SPD_ENVIRON_INCLUDED
21
22#if (defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100000)
23#define SPIDER_HANDLER_START_BULK_INSERT_HAS_FLAGS
24#endif
25
26#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100100
27#define SPIDER_SUPPORT_CREATE_OR_REPLACE_TABLE
28#endif
29
30#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100211
31#define HANDLER_HAS_TOP_TABLE_FIELDS
32#define HANDLER_HAS_DIRECT_UPDATE_ROWS
33#define HANDLER_HAS_DIRECT_AGGREGATE
34#define PARTITION_HAS_GET_CHILD_HANDLERS
35#define PARTITION_HAS_GET_PART_SPEC
36#define HA_EXTRA_HAS_STARTING_ORDERED_INDEX_SCAN
37#define HANDLER_HAS_NEED_INFO_FOR_AUTO_INC
38#define HANDLER_HAS_CAN_USE_FOR_AUTO_INC_INIT
39#endif
40#endif /* SPD_ENVIRON_INCLUDED */
41