mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
moved similar code to function
onversion with check sql/item.cc: removed similar code sql/item_sum.cc: conversion with check sql/sql_delete.cc: conversion with check sql/sql_derived.cc: style fix sql/sql_lex.cc: conversion with check moved similar code to function sql/sql_lex.h: conversion with check moved similar code to function sql/sql_parse.cc: conversion with check sql/sql_update.cc: conversion with check sql/sql_yacc.yy: conversion with check
This commit is contained in:
@@ -2927,7 +2927,7 @@ mysql_init_query(THD *thd)
|
||||
void
|
||||
mysql_init_select(LEX *lex)
|
||||
{
|
||||
SELECT_LEX *select_lex= (SELECT_LEX *)lex->current_select;
|
||||
SELECT_LEX *select_lex= lex->current_select->select_lex();
|
||||
DBUG_ASSERT(select_lex->linkage != GLOBAL_OPTIONS_TYPE);
|
||||
select_lex->init_select();
|
||||
select_lex->master_unit()->select_limit= select_lex->select_limit=
|
||||
@@ -2964,7 +2964,7 @@ mysql_new_select(LEX *lex, bool move_down)
|
||||
|
||||
select_lex->master_unit()->global_parameters= select_lex;
|
||||
DBUG_ASSERT(lex->current_select->linkage != GLOBAL_OPTIONS_TYPE);
|
||||
select_lex->include_global(((SELECT_LEX*)lex->current_select)->
|
||||
select_lex->include_global(lex->current_select->select_lex()->
|
||||
next_select_in_list_addr());
|
||||
lex->current_select= select_lex;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user