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
bdfdd38f
Commit
bdfdd38f
authored
Apr 07, 2006
by
andrey@lmy004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tests
parent
7bd09ac2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
mysql-test/r/events.result
mysql-test/r/events.result
+4
-3
mysql-test/t/events.test
mysql-test/t/events.test
+4
-4
mysql-test/t/events_scheduling.test
mysql-test/t/events_scheduling.test
+2
-2
No files found.
mysql-test/r/events.result
View file @
bdfdd38f
...
...
@@ -262,10 +262,11 @@ ALTER TABLE mysql.event MODIFY db char(64) character set utf8 collate utf8_bin d
"This should work"
SHOW EVENTS;
Db Name Definer Type Execute at Interval value Interval field Starts Ends Status
events_test intact_check root@localhost RECURRING NULL 10 HOUR # # ENABLED
events_test intact_check root@localhost RECURRING NULL 10 HOUR # # ENABLED
ALTER TABLE mysql.event MODIFY db char(64) character set cp1251 default '';
SELECT event_name FROM INFORMATION_SCHEMA.EVENTS;
ERROR HY000: Cannot load from mysql.event. Table probably corrupted. See error log.
ALTER TABLE mysql.event MODIFY db varchar(64) character set utf8 collate utf8_bin default '';
Warnings:
Warning 1265 Data truncated for column 'db' at row 1
SELECT event_name FROM INFORMATION_SCHEMA.EVENTS;
ERROR HY000: Cannot load from mysql.event. Table probably corrupted. See error log.
ALTER TABLE mysql.event DROP comment, DROP starts;
...
...
mysql-test/t/events.test
View file @
bdfdd38f
...
...
@@ -147,8 +147,8 @@ SHOW CREATE EVENT root19;
create
event
root20
on
schedule
every
'50:20:12:45'
day_second
do
select
1
;
SHOW
CREATE
EVENT
root20
;
set
names
cp1251
;
create
event
ðóóò21
on
schedule
every
'50:23:59:95'
day_second
COMMENT
'òîâà å 1251 êîìåíòàð
'
do
select
1
;
SHOW
CREATE
EVENT
ðóóò
21
;
create
event
ðóóò21
on
schedule
every
'50:23:59:95'
day_second
COMMENT
'òîâ
à å 1251 êîìåíòàð'
do
select
1
;
SHOW
CREATE
EVENT
ðóóò21
;
insert
into
mysql
.
event
(
db
,
name
,
body
,
definer
,
interval_value
,
interval_field
)
values
(
database
(),
"root22"
,
"select 1"
,
user
(),
100
,
"SECOND_MICROSECOND"
);
--
error
1235
show
create
event
root22
;
...
...
@@ -173,7 +173,7 @@ drop event root17_1;
drop
event
root18
;
drop
event
root19
;
drop
event
root20
;
drop
event
ðóóò
21
;
drop
event
ðóóò21
;
set
names
latin1
;
#
...
...
@@ -202,7 +202,7 @@ INSERT INTO event_like SELECT * FROM mysql.event;
#sleep a bit or we won't catch the change of time
--
sleep
1
ALTER
TABLE
mysql
.
event
MODIFY
db
char
(
64
)
character
set
cp1251
default
''
;
--
error
1526
--
error
ER_CANNOT_LOAD_FROM_TABLE
SELECT
event_name
FROM
INFORMATION_SCHEMA
.
EVENTS
;
ALTER
TABLE
mysql
.
event
MODIFY
db
char
(
20
)
character
set
utf8
collate
utf8_bin
default
''
;
#wait a bit or we won't see the difference because of seconds resolution
...
...
mysql-test/t/events_scheduling.test
View file @
bdfdd38f
...
...
@@ -24,10 +24,10 @@ SELECT IF(TIME_TO_SEC(TIMEDIFF(ENDS,STARTS))=6, 'OK', 'ERROR') FROM INFORMATION_
SELECT
IF
(
LAST_EXECUTED
-
ENDS
<
2
,
'OK'
,
'ERROR'
)
FROM
INFORMATION_SCHEMA
.
EVENTS
WHERE
EVENT_SCHEMA
=
DATABASE
()
AND
EVENT_NAME
=
'start_n_end'
AND
ENDS
IS
NOT
NULL
;
DROP
EVENT
start_n_end
;
--
echo
"Already dropped because ended. Therefore an error."
--
error
1517
--
error
ER_EVENT_DOES_NOT_EXIST
DROP
EVENT
only_one_time
;
--
echo
"Already dropped because ended. Therefore an error."
--
error
1517
--
error
ER_EVENT_DOES_NOT_EXIST
DROP
EVENT
two_time
;
DROP
TABLE
table_1
;
DROP
TABLE
table_2
;
...
...
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