mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
moved similar code to function
onversion with check
This commit is contained in:
@ -508,14 +508,7 @@ multi_update::prepare(List<Item> &values, SELECT_LEX_UNIT *u)
|
||||
counter++;
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
||||
There are (SELECT_LEX*) pointer conversion here global union parameters
|
||||
can't be used in multiupdate
|
||||
|
||||
TODO: check is thd->lex.current_select == &thd->lex.select_lex?
|
||||
*/
|
||||
init_ftfuncs(thd, (SELECT_LEX*)thd->lex.current_select, 1);
|
||||
init_ftfuncs(thd, thd->lex.current_select->select_lex(), 1);
|
||||
error = 0; // Timestamps do not need to be restored, so far ...
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user