Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
0e531581
Commit
0e531581
authored
Jul 06, 2018
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A fix moved from sql_yacc.yy to sql_yacc_ora.yy.
parent
6fae04ea
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
mysql-test/main/set_statement.result
mysql-test/main/set_statement.result
+7
-0
mysql-test/main/set_statement.test
mysql-test/main/set_statement.test
+7
-0
sql/sql_yacc_ora.yy
sql/sql_yacc_ora.yy
+5
-4
No files found.
mysql-test/main/set_statement.result
View file @
0e531581
...
...
@@ -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;
mysql-test/main/set_statement.test
View file @
0e531581
...
...
@@ -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
;
sql/sql_yacc_ora.yy
View file @
0e531581
...
...
@@ -13176,10 +13176,11 @@ table_list:
table_name:
table_ident
{
if (unlikely(!Select->add_table_to_list(thd, $1, NULL,
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)
))
YYPS->m_mdl_type
))
MYSQL_YYABORT;
}
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment