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
545a6194
Commit
545a6194
authored
Jun 22, 2020
by
Varun Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-22187: SIGSEGV in ha_innobase::cmp_ref on DELETE
Added a new test file for tests with delete using INNODB.
parent
9160e4aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
0 deletions
+48
-0
mysql-test/main/delete_innodb.result
mysql-test/main/delete_innodb.result
+26
-0
mysql-test/main/delete_innodb.test
mysql-test/main/delete_innodb.test
+22
-0
No files found.
mysql-test/main/delete_innodb.result
0 → 100644
View file @
545a6194
# Tests for delete with INNODB
#
# MDEV-22187: SIGSEGV in ha_innobase::cmp_ref on DELETE
#
SET @save_sort_buffer_size= @@sort_buffer_size;
SET sort_buffer_size=1024;
CREATE TABLE t1(c1 CHAR(255) PRIMARY KEY) ENGINE=InnoDB;
INSERT INTO t1 VALUES (0), ('a'), ('b');
ANALYZE TABLE T1 PERSISTENT FOR ALL;
Table Op Msg_type Msg_text
test.t1 analyze status Engine-independent statistics collected
test.t1 analyze status OK
SELECT * FROM t1;
c1
0
a
b
EXPLAIN DELETE b FROM t1 AS a JOIN t1 AS b;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE a index NULL PRIMARY 255 NULL 3 Using index
1 SIMPLE b ALL NULL NULL NULL NULL 3
DELETE b FROM t1 AS a JOIN t1 AS b;
SELECT * FROM t1;
c1
SET sort_buffer_size=@save_sort_buffer_size;
DROP TABLE t1;
mysql-test/main/delete_innodb.test
0 → 100644
View file @
545a6194
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_sequence
.
inc
--
echo
# Tests for delete with INNODB
--
echo
#
--
echo
# MDEV-22187: SIGSEGV in ha_innobase::cmp_ref on DELETE
--
echo
#
SET
@
save_sort_buffer_size
=
@@
sort_buffer_size
;
SET
sort_buffer_size
=
1024
;
CREATE
TABLE
t1
(
c1
CHAR
(
255
)
PRIMARY
KEY
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
0
),
(
'a'
),
(
'b'
);
ANALYZE
TABLE
T1
PERSISTENT
FOR
ALL
;
SELECT
*
FROM
t1
;
EXPLAIN
DELETE
b
FROM
t1
AS
a
JOIN
t1
AS
b
;
DELETE
b
FROM
t1
AS
a
JOIN
t1
AS
b
;
SELECT
*
FROM
t1
;
SET
sort_buffer_size
=@
save_sort_buffer_size
;
DROP
TABLE
t1
;
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