1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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

This commit is contained in:
Oleksandr Byelkin
2018-07-06 10:33:00 +02:00
parent 6fae04ea7d
commit 0e531581e0
3 changed files with 19 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;
}
;