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
46cb1638
Commit
46cb1638
authored
Sep 09, 2021
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.2' into 10.3
parents
a6383a19
c7184c47
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
54 deletions
+55
-54
mysql-test/main/truncate.result
mysql-test/main/truncate.result
+1
-22
mysql-test/main/truncate.test
mysql-test/main/truncate.test
+1
-32
mysql-test/main/truncate_notembedded.result
mysql-test/main/truncate_notembedded.result
+22
-0
mysql-test/main/truncate_notembedded.test
mysql-test/main/truncate_notembedded.test
+31
-0
No files found.
mysql-test/main/truncate.result
View file @
46cb1638
drop table if exists t1, t2;
create table t1 (a integer, b integer,c1 CHAR(10));
insert into t1 (a) values (1),(2);
truncate table t1;
...
...
@@ -158,26 +157,6 @@ TRUNCATE t1;
HANDLER t1 READ FIRST;
ERROR 42S02: Unknown table 't1' in HANDLER
DROP TABLE t1;
# End of 6.0 tests
#
#
10.2 Test
#
End of 5.5 tests
#
# MDEV-23365: Assertion `!is_set() || (m_status == DA_OK_BULK &&
# is_bulk_op())' failed upon killed TRUNCATE
#
CREATE TABLE t1 (a INT) ENGINE=MyISAM;
LOCK TABLE t1 READ;
connect con1,localhost,root,,test;
SET SESSION max_session_mem_used= 65536;
LOCK TABLE t1 WRITE;
connection default;
SELECT * FROM t1;
a
UNLOCK TABLES;
connection con1;
TRUNCATE TABLE t1;
ERROR HY000: The MariaDB server is running with the --max-thread-mem-used=65536 option so it cannot execute this statement
disconnect con1;
connection default;
DROP TABLE t1;
# End of 10.2 Test
mysql-test/main/truncate.test
View file @
46cb1638
#
# Test of truncate
#
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
--
enable_warnings
create
table
t1
(
a
integer
,
b
integer
,
c1
CHAR
(
10
));
insert
into
t1
(
a
)
values
(
1
),(
2
);
...
...
@@ -161,34 +158,6 @@ HANDLER t1 READ FIRST;
# Cleanup
DROP
TABLE
t1
;
--
echo
# End of 6.0 tests
--
echo
#
--
echo
# 10.2 Test
--
echo
#
--
echo
# MDEV-23365: Assertion `!is_set() || (m_status == DA_OK_BULK &&
--
echo
# is_bulk_op())' failed upon killed TRUNCATE
--
echo
# End of 5.5 tests
--
echo
#
CREATE
TABLE
t1
(
a
INT
)
ENGINE
=
MyISAM
;
LOCK
TABLE
t1
READ
;
--
connect
(
con1
,
localhost
,
root
,,
test
)
SET
SESSION
max_session_mem_used
=
65536
;
--
send
LOCK
TABLE
t1
WRITE
;
--
connection
default
SELECT
*
FROM
t1
;
UNLOCK
TABLES
;
--
connection
con1
--
reap
--
error
ER_OPTION_PREVENTS_STATEMENT
TRUNCATE
TABLE
t1
;
--
disconnect
con1
--
connection
default
DROP
TABLE
t1
;
--
echo
# End of 10.2 Test
mysql-test/main/truncate_notembedded.result
0 → 100644
View file @
46cb1638
#
# MDEV-23365: Assertion `!is_set() || (m_status == DA_OK_BULK &&
# is_bulk_op())' failed upon killed TRUNCATE
#
CREATE TABLE t1 (a INT) ENGINE=MyISAM;
LOCK TABLE t1 READ;
connect con1,localhost,root,,test;
SET SESSION max_session_mem_used= 65536;
LOCK TABLE t1 WRITE;
connection default;
SELECT * FROM t1;
a
UNLOCK TABLES;
connection con1;
TRUNCATE TABLE t1;
ERROR HY000: The MariaDB server is running with the --max-thread-mem-used=65536 option so it cannot execute this statement
disconnect con1;
connection default;
DROP TABLE t1;
#
# End of 10.2 tests
#
mysql-test/main/truncate_notembedded.test
0 → 100644
View file @
46cb1638
--
source
include
/
not_embedded
.
inc
--
echo
#
--
echo
# MDEV-23365: Assertion `!is_set() || (m_status == DA_OK_BULK &&
--
echo
# is_bulk_op())' failed upon killed TRUNCATE
--
echo
#
CREATE
TABLE
t1
(
a
INT
)
ENGINE
=
MyISAM
;
LOCK
TABLE
t1
READ
;
--
connect
(
con1
,
localhost
,
root
,,
test
)
SET
SESSION
max_session_mem_used
=
65536
;
--
send
LOCK
TABLE
t1
WRITE
;
--
connection
default
SELECT
*
FROM
t1
;
UNLOCK
TABLES
;
--
connection
con1
--
reap
--
error
ER_OPTION_PREVENTS_STATEMENT
TRUNCATE
TABLE
t1
;
--
disconnect
con1
--
connection
default
DROP
TABLE
t1
;
--
echo
#
--
echo
# End of 10.2 tests
--
echo
#
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