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
b266e5b9
Commit
b266e5b9
authored
Jan 14, 2011
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport testcase for: Bug#43360 - Server crash with a simple multi-table update
parent
e43c7a2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
0 deletions
+80
-0
mysql-test/r/innodb_mrr.result
mysql-test/r/innodb_mrr.result
+43
-0
mysql-test/t/innodb_mrr.test
mysql-test/t/innodb_mrr.test
+37
-0
No files found.
mysql-test/r/innodb_mrr.result
View file @
b266e5b9
...
@@ -660,3 +660,46 @@ count(*) sum(table1.col_int_key*table2.pk)
...
@@ -660,3 +660,46 @@ count(*) sum(table1.col_int_key*table2.pk)
drop table t1,t2;
drop table t1,t2;
set join_cache_level=@my_save_join_cache_level;
set join_cache_level=@my_save_join_cache_level;
set join_buffer_size=@my_save_join_buffer_size;
set join_buffer_size=@my_save_join_buffer_size;
#
# Bug#43360 - Server crash with a simple multi-table update
#
CREATE TABLE t1 (
a CHAR(2) NOT NULL PRIMARY KEY,
b VARCHAR(20) NOT NULL,
KEY (b)
) ENGINE=InnoDB;
CREATE TABLE t2 (
a CHAR(2) NOT NULL PRIMARY KEY,
b VARCHAR(20) NOT NULL,
KEY (b)
) ENGINE=InnoDB;
INSERT INTO t1 VALUES
('AB','MySQLAB'),
('JA','Sun Microsystems'),
('MS','Microsoft'),
('IB','IBM- Inc.'),
('GO','Google Inc.');
INSERT INTO t2 VALUES
('AB','Sweden'),
('JA','USA'),
('MS','United States of America'),
('IB','North America'),
('GO','South America');
Warnings:
Warning 1265 Data truncated for column 'b' at row 3
UPDATE t1,t2 SET t1.b=UPPER(t1.b) WHERE t1.b LIKE 'United%';
SELECT * FROM t1;
a b
GO Google Inc.
IB IBM- Inc.
MS Microsoft
AB MySQLAB
JA Sun Microsystems
SELECT * FROM t2;
a b
IB North America
GO South America
AB Sweden
MS United States of Ame
JA USA
DROP TABLE t1,t2;
mysql-test/t/innodb_mrr.test
View file @
b266e5b9
...
@@ -364,3 +364,40 @@ drop table t1,t2;
...
@@ -364,3 +364,40 @@ drop table t1,t2;
set
join_cache_level
=@
my_save_join_cache_level
;
set
join_cache_level
=@
my_save_join_cache_level
;
set
join_buffer_size
=@
my_save_join_buffer_size
;
set
join_buffer_size
=@
my_save_join_buffer_size
;
--
echo
#
--
echo
# Bug#43360 - Server crash with a simple multi-table update
--
echo
#
CREATE
TABLE
t1
(
a
CHAR
(
2
)
NOT
NULL
PRIMARY
KEY
,
b
VARCHAR
(
20
)
NOT
NULL
,
KEY
(
b
)
)
ENGINE
=
InnoDB
;
CREATE
TABLE
t2
(
a
CHAR
(
2
)
NOT
NULL
PRIMARY
KEY
,
b
VARCHAR
(
20
)
NOT
NULL
,
KEY
(
b
)
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
'AB'
,
'MySQLAB'
),
(
'JA'
,
'Sun Microsystems'
),
(
'MS'
,
'Microsoft'
),
(
'IB'
,
'IBM- Inc.'
),
(
'GO'
,
'Google Inc.'
);
INSERT
INTO
t2
VALUES
(
'AB'
,
'Sweden'
),
(
'JA'
,
'USA'
),
(
'MS'
,
'United States of America'
),
(
'IB'
,
'North America'
),
(
'GO'
,
'South America'
);
UPDATE
t1
,
t2
SET
t1
.
b
=
UPPER
(
t1
.
b
)
WHERE
t1
.
b
LIKE
'United%'
;
SELECT
*
FROM
t1
;
SELECT
*
FROM
t2
;
DROP
TABLE
t1
,
t2
;
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