A fix for a long standing bug in LOAD DATA .. LOCAL ..'

sql/sql_load.cc:
  A fix for a long standing bug in LOAD DATA .. LOCAL ..'
  
  When the error occurs, a link is broken instead of simply returning
  the error message and maintaining the same connection.
This commit is contained in:
unknown 2004-07-13 13:54:20 +03:00
parent 7b6fc58fff
commit 1e23a0efef

View File

@ -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())
{
/*