Fix current command tracking during LDLI
When a LOAD DATA LOCAL INFILE was executed, the client and backend protocols would update the command byte leading to misinterpretations of the data.
This commit is contained in:
@ -425,7 +425,7 @@ static inline void prepare_for_write(DCB* dcb, GWBUF* buffer)
|
||||
{
|
||||
uint8_t* data = GWBUF_DATA(buffer);
|
||||
|
||||
if (!proto->large_query)
|
||||
if (!proto->large_query && !session_is_load_active(dcb->session))
|
||||
{
|
||||
proto->current_command = (mxs_mysql_cmd_t)MYSQL_GET_COMMAND(data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user