mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.5 into 10.6
This commit is contained in:
@@ -3818,6 +3818,8 @@ void st_select_lex_unit::print(String *str, enum_query_type query_type)
|
||||
}
|
||||
else if (saved_fake_select_lex)
|
||||
saved_fake_select_lex->print_limit(thd, str, query_type);
|
||||
|
||||
print_lock_from_the_last_select(str);
|
||||
}
|
||||
|
||||
|
||||
@@ -10717,6 +10719,22 @@ bool SELECT_LEX_UNIT::set_lock_to_the_last_select(Lex_select_lock l)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
void SELECT_LEX_UNIT::print_lock_from_the_last_select(String *str)
|
||||
{
|
||||
SELECT_LEX *sel= first_select();
|
||||
while (sel->next_select())
|
||||
sel= sel->next_select();
|
||||
if(sel->braces)
|
||||
return; // braces processed in st_select_lex::print
|
||||
|
||||
// lock type
|
||||
sel->print_lock_type(str);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Generate unique name for generated derived table for this SELECT
|
||||
*/
|
||||
|
Reference in New Issue
Block a user