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

Fixed behavior of LOAD DATA with subqueries in SET clause.

The idea is to use TABLE_LIST::lock_type for passing type of lock for
target table to mysql_load() instead of using LEX::lock_option 
(which were rewritten by first subselect in SET clause).

This should also fix potential problem with LOAD DATA in SP
(it is important for them to have right lock_type in the table
 list by the end of statement parsing).
This commit is contained in:
dlenev@brandersnatch.localdomain
2005-03-16 12:13:35 +03:00
parent f169114042
commit 3da06a5500
7 changed files with 38 additions and 19 deletions

View File

@ -3355,7 +3355,7 @@ unsent_create_error:
res= mysql_load(thd, lex->exchange, first_table, lex->field_list,
lex->update_list, lex->value_list, lex->duplicates,
lex->ignore, (bool) lex->local_file, lex->lock_option);
lex->ignore, (bool) lex->local_file);
break;
}