From 0d5e1365b46b9937c0b39b243d80f064ea1a5d98 Mon Sep 17 00:00:00 2001 From: "Sinisa@sinisa.nasamreza.org" <> Date: Tue, 13 Jul 2004 13:54:20 +0300 Subject: [PATCH] A fix for a long standing bug in LOAD DATA .. LOCAL ..' --- sql/sql_load.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sql/sql_load.cc b/sql/sql_load.cc index a3ba14373b2..501852b5de8 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -291,6 +291,9 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list, { if (transactional_table) ha_autocommit_or_rollback(thd,error); + if (read_file_from_client) + while (!read_info.next_line()) + ; if (mysql_bin_log.is_open()) { /*