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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
85391c90
Commit
85391c90
authored
Jun 08, 2010
by
Konstantin Osipov
Browse files
Options
Browse Files
Download
Plain Diff
Merge with trunk-runtime.
parents
4b6b69d2
b5a038a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
2 deletions
+29
-2
mysql-test/r/drop.result
mysql-test/r/drop.result
+10
-0
mysql-test/t/drop.test
mysql-test/t/drop.test
+17
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+2
-2
No files found.
mysql-test/r/drop.result
View file @
85391c90
...
@@ -157,3 +157,13 @@ Error 1051 Unknown table 't1'
...
@@ -157,3 +157,13 @@ Error 1051 Unknown table 't1'
# --
# --
# -- End of Bug#37431.
# -- End of Bug#37431.
# --
# --
#
# Bug#54282 Crash in MDL_context::upgrade_shared_lock_to_exclusive
#
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (a INT);
LOCK TABLE t1 WRITE;
DROP TABLE t1, t1;
ERROR 42000: Not unique table/alias: 't1'
UNLOCK TABLES;
DROP TABLE t1;
mysql-test/t/drop.test
View file @
85391c90
...
@@ -256,3 +256,20 @@ SHOW WARNINGS;
...
@@ -256,3 +256,20 @@ SHOW WARNINGS;
--
echo
# --
--
echo
# --
--
echo
# -- End of Bug#37431.
--
echo
# -- End of Bug#37431.
--
echo
# --
--
echo
# --
--
echo
#
--
echo
# Bug#54282 Crash in MDL_context::upgrade_shared_lock_to_exclusive
--
echo
#
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
CREATE
TABLE
t1
(
a
INT
);
LOCK
TABLE
t1
WRITE
;
--
error
ER_NONUNIQ_TABLE
DROP
TABLE
t1
,
t1
;
UNLOCK
TABLES
;
DROP
TABLE
t1
;
sql/sql_yacc.yy
View file @
85391c90
...
@@ -10151,7 +10151,7 @@ drop:
...
@@ -10151,7 +10151,7 @@ drop:
lex->sql_command = SQLCOM_DROP_TABLE;
lex->sql_command = SQLCOM_DROP_TABLE;
lex->drop_temporary= $2;
lex->drop_temporary= $2;
lex->drop_if_exists= $4;
lex->drop_if_exists= $4;
YYPS->m_lock_type= TL_
IGNORE
;
YYPS->m_lock_type= TL_
UNLOCK
;
YYPS->m_mdl_type= MDL_EXCLUSIVE;
YYPS->m_mdl_type= MDL_EXCLUSIVE;
}
}
table_list opt_restrict
table_list opt_restrict
...
@@ -10244,7 +10244,7 @@ drop:
...
@@ -10244,7 +10244,7 @@ drop:
LEX *lex= Lex;
LEX *lex= Lex;
lex->sql_command= SQLCOM_DROP_VIEW;
lex->sql_command= SQLCOM_DROP_VIEW;
lex->drop_if_exists= $3;
lex->drop_if_exists= $3;
YYPS->m_lock_type= TL_
IGNORE
;
YYPS->m_lock_type= TL_
UNLOCK
;
YYPS->m_mdl_type= MDL_EXCLUSIVE;
YYPS->m_mdl_type= MDL_EXCLUSIVE;
}
}
table_list opt_restrict
table_list opt_restrict
...
...
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