Commit 04471ba7 authored by Kentoku SHIBA's avatar Kentoku SHIBA

Add flugs function parameter to start_bulk_insert

parent 0a286927
...@@ -8634,9 +8634,17 @@ void ha_spider::release_auto_increment() ...@@ -8634,9 +8634,17 @@ void ha_spider::release_auto_increment()
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }
#ifdef SPIDER_HANDLER_START_BULK_INSERT_HAS_FLAGS
void ha_spider::start_bulk_insert(
ha_rows rows,
uint flags
)
#else
void ha_spider::start_bulk_insert( void ha_spider::start_bulk_insert(
ha_rows rows ha_rows rows
) { )
#endif
{
DBUG_ENTER("ha_spider::start_bulk_insert"); DBUG_ENTER("ha_spider::start_bulk_insert");
DBUG_PRINT("info",("spider this=%p", this)); DBUG_PRINT("info",("spider this=%p", this));
bulk_insert = TRUE; bulk_insert = TRUE;
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
#pragma interface #pragma interface
#endif #endif
#if (defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100000)
#define SPIDER_HANDLER_START_BULK_INSERT_HAS_FLAGS
#endif
#define SPIDER_CONNECT_INFO_MAX_LEN 64 #define SPIDER_CONNECT_INFO_MAX_LEN 64
#define SPIDER_CONNECT_INFO_PATH_MAX_LEN FN_REFLEN #define SPIDER_CONNECT_INFO_PATH_MAX_LEN FN_REFLEN
#define SPIDER_LONGLONG_LEN 20 #define SPIDER_LONGLONG_LEN 20
...@@ -513,9 +517,16 @@ class ha_spider: public handler ...@@ -513,9 +517,16 @@ class ha_spider: public handler
ulonglong value ulonglong value
); );
void release_auto_increment(); void release_auto_increment();
#ifdef SPIDER_HANDLER_START_BULK_INSERT_HAS_FLAGS
void start_bulk_insert(
ha_rows rows,
uint flags
);
#else
void start_bulk_insert( void start_bulk_insert(
ha_rows rows ha_rows rows
); );
#endif
int end_bulk_insert(); int end_bulk_insert();
int write_row( int write_row(
uchar *buf uchar *buf
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment