1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug#17081 LOAD DATA INFILE" may not load all the data

Bug #17154  	load data infile hangs when duplicate key encountered
This commit is contained in:
tomas@poseidon.ndb.mysql.com
2006-02-07 11:47:04 +01:00
parent 69ed898ec2
commit 407d98b946
4 changed files with 132 additions and 10 deletions

View File

@ -384,8 +384,11 @@ bool mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
error= read_sep_field(thd, info, table_list, fields_vars,
set_fields, set_values, read_info,
*enclosed, skip_lines, ignore);
if (table->file->end_bulk_insert())
error=1; /* purecov: inspected */
if (table->file->end_bulk_insert() && !error)
{
table->file->print_error(my_errno, MYF(0));
error= 1;
}
table->file->extra(HA_EXTRA_NO_IGNORE_DUP_KEY);
table->next_number_field=0;
}