diff options
author | monty@mashka.mysql.fi <> | 2002-09-18 21:04:49 +0300 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-09-18 21:04:49 +0300 |
commit | f638ee6df91a32ed767fa67cf643dfa07f9a82d4 (patch) | |
tree | 83f34b98c4e43e4f23f9b941d93676b65ef1b657 /sql/sql_load.cc | |
parent | dfd0f82b9368cd4d023ebc1f6eab6e88622b060c (diff) | |
download | mariadb-git-f638ee6df91a32ed767fa67cf643dfa07f9a82d4.tar.gz |
Added code to flush a bulk_insert index.
This fixes a bug when doing multi-row inserts on table with an auto_increment key that is not in the first key segment.
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r-- | sql/sql_load.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc index 50e0ea9d5c8..8881c79eba4 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -248,8 +248,7 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list, table->next_number_field=table->found_next_number_field; VOID(table->file->extra_opt(HA_EXTRA_WRITE_CACHE, thd->variables.read_buff_size)); - VOID(table->file->extra_opt(HA_EXTRA_BULK_INSERT_BEGIN, - thd->variables.bulk_insert_buff_size)); + table->bulk_insert= 1; if (handle_duplicates == DUP_IGNORE || handle_duplicates == DUP_REPLACE) table->file->extra(HA_EXTRA_IGNORE_DUP_KEY); |