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
b8941aec
Commit
b8941aec
authored
Feb 24, 2006
by
andrey@lmy004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add this file to revision control. there was not new line at the end of the file
fix for bug#16411
parent
11e5e40e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
mysql-test/t/events_microsec.test
mysql-test/t/events_microsec.test
+54
-0
No files found.
mysql-test/t/events_microsec.test
0 → 100644
View file @
b8941aec
create
database
if
not
exists
events_test
;
use
events_test
;
--
error
1235
CREATE
EVENT
micro_test
ON
SCHEDULE
EVERY
100
MICROSECOND
DO
SELECT
1
;
--
error
1235
CREATE
EVENT
micro_test
ON
SCHEDULE
EVERY
100
DAY_MICROSECOND
DO
SELECT
1
;
--
error
1235
CREATE
EVENT
micro_test
ON
SCHEDULE
EVERY
100
HOUR_MICROSECOND
DO
SELECT
1
;
--
error
1235
CREATE
EVENT
micro_test
ON
SCHEDULE
EVERY
100
MINUTE_MICROSECOND
DO
SELECT
1
;
--
error
1235
CREATE
EVENT
micro_test
ON
SCHEDULE
EVERY
100
SECOND_MICROSECOND
DO
SELECT
1
;
--
echo
"Now create normal event and change it on SQL level"
CREATE
EVENT
micro_test2
ON
SCHEDULE
EVERY
1
MONTH
DO
SELECT
1
;
UPDATE
mysql
.
event
SET
interval_field
=
'MICROSECOND'
WHERE
db
=
database
()
AND
definer
=
user
()
AND
name
=
'micro_test2'
;
--
error
1235
SHOW
CREATE
EVENT
micro_test2
;
SET
GLOBAL
event_scheduler
=
0
;
--
sleep
1
--
echo
"Should not be running:"
SHOW
VARIABLES
like
'event_scheduler'
;
UPDATE
mysql
.
event
SET
interval_field
=
'DAY_MICROSECOND'
WHERE
db
=
database
()
AND
definer
=
user
()
AND
name
=
'micro_test2'
;
--
error
1235
SHOW
CREATE
EVENT
micro_test2
;
SET
GLOBAL
event_scheduler
=
0
;
--
sleep
1
--
echo
"Should not be running:"
SHOW
VARIABLES
like
'event_scheduler'
;
UPDATE
mysql
.
event
SET
interval_field
=
'SECOND_MICROSECOND'
WHERE
db
=
database
()
AND
definer
=
user
()
AND
name
=
'micro_test2'
;
--
error
1235
SHOW
CREATE
EVENT
micro_test2
;
SET
GLOBAL
event_scheduler
=
0
;
--
sleep
1
--
echo
"Should not be running:"
SHOW
VARIABLES
like
'event_scheduler'
;
UPDATE
mysql
.
event
SET
interval_field
=
'HOUR_MICROSECOND'
WHERE
db
=
database
()
AND
definer
=
user
()
AND
name
=
'micro_test2'
;
--
error
1235
SHOW
CREATE
EVENT
micro_test2
;
SET
GLOBAL
event_scheduler
=
0
;
--
sleep
1
--
echo
"Should not be running:"
SHOW
VARIABLES
like
'event_scheduler'
;
UPDATE
mysql
.
event
SET
interval_field
=
'MINUTE_MICROSECOND'
WHERE
db
=
database
()
AND
definer
=
user
()
AND
name
=
'micro_test2'
;
--
error
1235
SHOW
CREATE
EVENT
micro_test2
;
SET
GLOBAL
event_scheduler
=
0
;
--
sleep
1
--
echo
"Should not be running:"
SHOW
VARIABLES
like
'event_scheduler'
;
DROP
EVENT
micro_test2
;
drop
database
events_test
;
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