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
bccd9d0e
Commit
bccd9d0e
authored
Jul 24, 2019
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-20108: [ERROR] mysqld got signal 11 in st_select_lex::add_table_to_list
Use the same select as for usual table list.
parent
819c40d6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
mysql-test/main/parser.result
mysql-test/main/parser.result
+13
-0
mysql-test/main/parser.test
mysql-test/main/parser.test
+14
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-1
No files found.
mysql-test/main/parser.result
View file @
bccd9d0e
...
@@ -1784,4 +1784,17 @@ a
...
@@ -1784,4 +1784,17 @@ a
select * from t1 for update;
select * from t1 for update;
a
a
drop table t1;
drop table t1;
#
# MDEV-20108: [ERROR] mysqld got signal 11 in
# st_select_lex::add_table_to_list
#
CREATE TABLE t1 (c1 INT NULL);
CREATE TABLE t2 (c1 INT NULL);
SET STATEMENT max_statement_time=900 FOR LOCK TABLES `t1` WRITE;
select * from t1;
c1
select * from t2;
ERROR HY000: Table 't2' was not locked with LOCK TABLES
SET STATEMENT max_statement_time=900 FOR unlock tables;
drop table t1, t2;
# End of 10.4 tests
# End of 10.4 tests
mysql-test/main/parser.test
View file @
bccd9d0e
...
@@ -1552,4 +1552,18 @@ create table t1 (a int);
...
@@ -1552,4 +1552,18 @@ create table t1 (a int);
select
*
from
t1
for
update
;
select
*
from
t1
for
update
;
drop
table
t1
;
drop
table
t1
;
--
echo
#
--
echo
# MDEV-20108: [ERROR] mysqld got signal 11 in
--
echo
# st_select_lex::add_table_to_list
--
echo
#
CREATE
TABLE
t1
(
c1
INT
NULL
);
CREATE
TABLE
t2
(
c1
INT
NULL
);
SET
STATEMENT
max_statement_time
=
900
FOR
LOCK
TABLES
`t1`
WRITE
;
select
*
from
t1
;
--
error
ER_TABLE_NOT_LOCKED
select
*
from
t2
;
SET
STATEMENT
max_statement_time
=
900
FOR
unlock
tables
;
drop
table
t1
,
t2
;
--
echo
# End of 10.4 tests
--
echo
# End of 10.4 tests
sql/sql_yacc.yy
View file @
bccd9d0e
...
@@ -16715,7 +16715,7 @@ table_lock:
...
@@ -16715,7 +16715,7 @@ table_lock:
? MDL_SHARED_WRITE
? MDL_SHARED_WRITE
: MDL_SHARED_NO_READ_WRITE;
: MDL_SHARED_NO_READ_WRITE;
if (unlikely(!
Select
->
if (unlikely(!
Lex->current_select_or_default()
->
add_table_to_list(thd, $1, $2, table_options,
add_table_to_list(thd, $1, $2, table_options,
lock_type, mdl_type)))
lock_type, mdl_type)))
MYSQL_YYABORT;
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