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
ae462f3e
Commit
ae462f3e
authored
Oct 10, 2007
by
davi@moksha.com.br
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge test case for Bug 21587
parent
f74f363a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
0 deletions
+79
-0
mysql-test/include/handler.inc
mysql-test/include/handler.inc
+35
-0
mysql-test/r/handler_innodb.result
mysql-test/r/handler_innodb.result
+22
-0
mysql-test/r/handler_myisam.result
mysql-test/r/handler_myisam.result
+22
-0
No files found.
mysql-test/include/handler.inc
View file @
ae462f3e
...
...
@@ -498,3 +498,38 @@ handler t1_alias read a next;
handler
t1_alias
READ
a
next
where
inexistent
>
0
;
handler
t1_alias
close
;
drop
table
t1
;
#
# Bug#21587 FLUSH TABLES causes server crash when used with HANDLER statements
#
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
--
enable_warnings
create
table
t1
(
c1
int
);
create
table
t2
(
c1
int
);
insert
into
t1
values
(
1
);
insert
into
t2
values
(
2
);
--
echo
connection
:
default
handler
t1
open
;
handler
t1
read
first
;
connect
(
flush
,
localhost
,
root
,,);
connection
flush
;
--
echo
connection
:
flush
--
send
flush
tables
;
connection
default
;
--
echo
connection
:
default
let
$wait_condition
=
select
count
(
*
)
=
1
from
information_schema
.
processlist
where
state
=
"Flushing tables"
;
--
source
include
/
wait_condition
.
inc
handler
t2
open
;
handler
t2
read
first
;
handler
t1
read
next
;
handler
t1
close
;
handler
t2
close
;
connection
flush
;
reap
;
connection
default
;
drop
table
t1
,
t2
;
disconnect
flush
;
mysql-test/r/handler_innodb.result
View file @
ae462f3e
...
...
@@ -535,3 +535,25 @@ handler t1_alias READ a next where inexistent > 0;
ERROR 42S22: Unknown column 'inexistent' in 'field list'
handler t1_alias close;
drop table t1;
drop table if exists t1,t2;
create table t1 (c1 int);
create table t2 (c1 int);
insert into t1 values (1);
insert into t2 values (2);
connection: default
handler t1 open;
handler t1 read first;
c1
1
connection: flush
flush tables;;
connection: default
handler t2 open;
handler t2 read first;
c1
2
handler t1 read next;
c1
handler t1 close;
handler t2 close;
drop table t1,t2;
mysql-test/r/handler_myisam.result
View file @
ae462f3e
...
...
@@ -535,3 +535,25 @@ handler t1_alias READ a next where inexistent > 0;
ERROR 42S22: Unknown column 'inexistent' in 'field list'
handler t1_alias close;
drop table t1;
drop table if exists t1,t2;
create table t1 (c1 int);
create table t2 (c1 int);
insert into t1 values (1);
insert into t2 values (2);
connection: default
handler t1 open;
handler t1 read first;
c1
1
connection: flush
flush tables;;
connection: default
handler t2 open;
handler t2 read first;
c1
2
handler t1 read next;
c1
handler t1 close;
handler t2 close;
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