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
e4c3928f
Commit
e4c3928f
authored
Feb 22, 2008
by
hhunger@hh-nb.hungers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced all --sleep by wait_condition (bug#32664).
parent
f41ad6f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
mysql-test/t/events_1.test
mysql-test/t/events_1.test
+9
-3
mysql-test/t/events_2.test
mysql-test/t/events_2.test
+2
-0
No files found.
mysql-test/t/events_1.test
View file @
e4c3928f
# changes 2008-02-20 hhunger splitted events.test into events_1 and events_2
# changes 2008-02-22 hhunger replaced all sleep by wait_condition
#
# Can't test with embedded server that doesn't support grants
--
source
include
/
not_embedded
.
inc
...
...
@@ -24,7 +27,8 @@ CREATE EVENT e_x2 ON SCHEDULE EVERY 1 SECOND DO DROP TABLE x_table;
connection
default
;
SHOW
DATABASES
LIKE
'db_x'
;
SET
GLOBAL
event_scheduler
=
1
;
--
sleep
1.2
let
$wait_condition
=
SELECT
count
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
SCHEMATA
WHERE
SCHEMA_NAME
LIKE
'db_x'
;
--
source
include
/
wait_condition
.
inc
SHOW
DATABASES
LIKE
'db_x'
;
SHOW
TABLES
FROM
db_x
;
SET
GLOBAL
event_scheduler
=
off
;
...
...
@@ -90,7 +94,8 @@ begin
end
|
delimiter
;
|
set
global
event_scheduler
=
on
;
--
sleep
3
let
$wait_condition
=
SELECT
count
(
*
)
>
0
from
mysql
.
event
where
name
=
'e_43'
and
interval_value
=
5
;
--
source
include
/
wait_condition
.
inc
select
db
,
name
,
body
,
status
,
interval_field
,
interval_value
from
mysql
.
event
;
drop
event
e_43
;
drop
table
test_nested
;
...
...
@@ -98,7 +103,8 @@ drop table test_nested;
--
echo
"Let's check whether we can use non-qualified names"
create
table
non_qualif
(
a
int
);
create
event
non_qualif_ev
on
schedule
every
10
minute
do
insert
into
non_qualif
values
(
800219
);
--
sleep
1.1
let
$wait_condition
=
SELECT
count
(
*
)
=
1
from
non_qualif
where
a
=
800219
;
--
source
include
/
wait_condition
.
inc
select
*
from
non_qualif
;
drop
event
non_qualif_ev
;
drop
table
non_qualif
;
...
...
mysql-test/t/events_2.test
View file @
e4c3928f
# changes 2008-02-20 hhunger splitted events.test into events_1 and events_2
#
# Can't test with embedded server that doesn't support grants
--
source
include
/
not_embedded
.
inc
...
...
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