mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Few more places with thd->lex replaced with lex (mysql_update,
check_simple_select). This change was inspired by Monty in December 2003 when thd->lex became a pointer in 4.1. sql/sql_parse.cc: Few more places with thd->lex replaced with lex. sql/sql_update.cc: Few more places with thd->lex replaced with lex.
This commit is contained in:
@ -5865,11 +5865,12 @@ static bool append_file_to_dir(THD *thd, const char **filename_ptr,
|
||||
bool check_simple_select()
|
||||
{
|
||||
THD *thd= current_thd;
|
||||
if (thd->lex->current_select != &thd->lex->select_lex)
|
||||
LEX *lex= thd->lex;
|
||||
if (lex->current_select != &lex->select_lex)
|
||||
{
|
||||
char command[80];
|
||||
strmake(command, thd->lex->yylval->symbol.str,
|
||||
min(thd->lex->yylval->symbol.length, sizeof(command)-1));
|
||||
strmake(command, lex->yylval->symbol.str,
|
||||
min(lex->yylval->symbol.length, sizeof(command)-1));
|
||||
net_printf(thd, ER_CANT_USE_OPTION_HERE, command);
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user