Commit 0e531581 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

A fix moved from sql_yacc.yy to sql_yacc_ora.yy.

parent 6fae04ea
......@@ -1225,3 +1225,10 @@ set @rnd=1;
select @rnd;
@rnd
0
create table t (a int);
SET sql_mode=ORACLE;
SET STATEMENT myisam_sort_buffer_size=800000 FOR OPTIMIZE TABLE t;
Table Op Msg_type Msg_text
test.t optimize status Table is already up to date
SET sql_mode=default;
drop table t;
......@@ -1130,3 +1130,10 @@ while ($1)
--enable_query_log
--echo # @rnd should be 0
select @rnd;
create table t (a int);
SET sql_mode=ORACLE;
SET STATEMENT myisam_sort_buffer_size=800000 FOR OPTIMIZE TABLE t;
SET sql_mode=default;
drop table t;
......@@ -13176,10 +13176,11 @@ table_list:
table_name:
table_ident
{
if (unlikely(!Select->add_table_to_list(thd, $1, NULL,
TL_OPTION_UPDATING,
YYPS->m_lock_type,
YYPS->m_mdl_type)))
if (!thd->lex->current_select_or_default()->
add_table_to_list(thd, $1, NULL,
TL_OPTION_UPDATING,
YYPS->m_lock_type,
YYPS->m_mdl_type))
MYSQL_YYABORT;
}
;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment