mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
A fix moved from sql_yacc.yy to sql_yacc_ora.yy.
This commit is contained in:
@ -1225,3 +1225,10 @@ set @rnd=1;
|
|||||||
select @rnd;
|
select @rnd;
|
||||||
@rnd
|
@rnd
|
||||||
0
|
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
|
--enable_query_log
|
||||||
--echo # @rnd should be 0
|
--echo # @rnd should be 0
|
||||||
select @rnd;
|
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_name:
|
||||||
table_ident
|
table_ident
|
||||||
{
|
{
|
||||||
if (unlikely(!Select->add_table_to_list(thd, $1, NULL,
|
if (!thd->lex->current_select_or_default()->
|
||||||
TL_OPTION_UPDATING,
|
add_table_to_list(thd, $1, NULL,
|
||||||
YYPS->m_lock_type,
|
TL_OPTION_UPDATING,
|
||||||
YYPS->m_mdl_type)))
|
YYPS->m_lock_type,
|
||||||
|
YYPS->m_mdl_type))
|
||||||
MYSQL_YYABORT;
|
MYSQL_YYABORT;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
Reference in New Issue
Block a user