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
2efac224
Commit
2efac224
authored
Jul 01, 2007
by
igor@olga.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected a test case.
parent
eea7dd0a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
mysql-test/r/events_bugs.result
mysql-test/r/events_bugs.result
+5
-3
mysql-test/t/events_bugs.test
mysql-test/t/events_bugs.test
+6
-4
No files found.
mysql-test/r/events_bugs.result
View file @
2efac224
...
@@ -571,11 +571,11 @@ CREATE USER evtest1@localhost;
...
@@ -571,11 +571,11 @@ CREATE USER evtest1@localhost;
SET PASSWORD FOR evtest1@localhost = password('ev1');
SET PASSWORD FOR evtest1@localhost = password('ev1');
REVOKE ALL PRIVILEGES, GRANT OPTION FROM evtest1@localhost;
REVOKE ALL PRIVILEGES, GRANT OPTION FROM evtest1@localhost;
GRANT create, insert, select, event ON events_test.* TO evtest1@localhost;
GRANT create, insert, select, event ON events_test.* TO evtest1@localhost;
GRANT select,insert ON
TEST
.* TO evtest1@localhost;
GRANT select,insert ON
test
.* TO evtest1@localhost;
SHOW GRANTS FOR evtest1@localhost;
SHOW GRANTS FOR evtest1@localhost;
Grants for evtest1@localhost
Grants for evtest1@localhost
GRANT USAGE ON *.* TO 'evtest1'@'localhost' IDENTIFIED BY PASSWORD '*3170F3644E31580C25DE4A08F4C07CC9A2D40C32'
GRANT USAGE ON *.* TO 'evtest1'@'localhost' IDENTIFIED BY PASSWORD '*3170F3644E31580C25DE4A08F4C07CC9A2D40C32'
GRANT SELECT, INSERT ON `
TEST
`.* TO 'evtest1'@'localhost'
GRANT SELECT, INSERT ON `
test
`.* TO 'evtest1'@'localhost'
GRANT SELECT, INSERT, CREATE, EVENT ON `events_test`.* TO 'evtest1'@'localhost'
GRANT SELECT, INSERT, CREATE, EVENT ON `events_test`.* TO 'evtest1'@'localhost'
connection e1;
connection e1;
USE events_test;
USE events_test;
...
@@ -585,13 +585,15 @@ SET AUTOCOMMIT = 0;
...
@@ -585,13 +585,15 @@ SET AUTOCOMMIT = 0;
SET @evname = 'ev_sched_1823';
SET @evname = 'ev_sched_1823';
SET @cnt = 0;
SET @cnt = 0;
SELECT COUNT(*) INTO @cnt FROM test.event_log WHERE ev_nm = @evname;
SELECT COUNT(*) INTO @cnt FROM test.event_log WHERE ev_nm = @evname;
IF @cnt <
=
6 THEN
IF @cnt < 6 THEN
INSERT INTO test.event_log VALUES (NULL,@evname,@cnt+1,current_timestamp());
INSERT INTO test.event_log VALUES (NULL,@evname,@cnt+1,current_timestamp());
COMMIT;
COMMIT;
END IF;
END IF;
SELECT COUNT(*) INTO @cnt FROM test.event_log WHERE ev_nm = @evname;
SELECT COUNT(*) INTO @cnt FROM test.event_log WHERE ev_nm = @evname;
IF @cnt < 6 THEN
INSERT INTO test.event_log VALUES (NULL,@evname,@cnt+1,current_timestamp());
INSERT INTO test.event_log VALUES (NULL,@evname,@cnt+1,current_timestamp());
ROLLBACK;
ROLLBACK;
END IF;
END;|
END;|
connection default;
connection default;
DROP EVENT ev_sched_1823;
DROP EVENT ev_sched_1823;
...
...
mysql-test/t/events_bugs.test
View file @
2efac224
...
@@ -668,7 +668,7 @@ CREATE USER evtest1@localhost;
...
@@ -668,7 +668,7 @@ CREATE USER evtest1@localhost;
SET
PASSWORD
FOR
evtest1
@
localhost
=
password
(
'ev1'
);
SET
PASSWORD
FOR
evtest1
@
localhost
=
password
(
'ev1'
);
REVOKE
ALL
PRIVILEGES
,
GRANT
OPTION
FROM
evtest1
@
localhost
;
REVOKE
ALL
PRIVILEGES
,
GRANT
OPTION
FROM
evtest1
@
localhost
;
GRANT
create
,
insert
,
select
,
event
ON
events_test
.*
TO
evtest1
@
localhost
;
GRANT
create
,
insert
,
select
,
event
ON
events_test
.*
TO
evtest1
@
localhost
;
GRANT
select
,
insert
ON
TEST
.*
TO
evtest1
@
localhost
;
GRANT
select
,
insert
ON
test
.*
TO
evtest1
@
localhost
;
SHOW
GRANTS
FOR
evtest1
@
localhost
;
SHOW
GRANTS
FOR
evtest1
@
localhost
;
--
echo
connection
e1
;
--
echo
connection
e1
;
...
@@ -683,13 +683,15 @@ DO BEGIN
...
@@ -683,13 +683,15 @@ DO BEGIN
SET
@
evname
=
'ev_sched_1823'
;
SET
@
evname
=
'ev_sched_1823'
;
SET
@
cnt
=
0
;
SET
@
cnt
=
0
;
SELECT
COUNT
(
*
)
INTO
@
cnt
FROM
test
.
event_log
WHERE
ev_nm
=
@
evname
;
SELECT
COUNT
(
*
)
INTO
@
cnt
FROM
test
.
event_log
WHERE
ev_nm
=
@
evname
;
IF
@
cnt
<
=
6
THEN
IF
@
cnt
<
6
THEN
INSERT
INTO
test
.
event_log
VALUES
(
NULL
,
@
evname
,
@
cnt
+
1
,
current_timestamp
());
INSERT
INTO
test
.
event_log
VALUES
(
NULL
,
@
evname
,
@
cnt
+
1
,
current_timestamp
());
COMMIT
;
COMMIT
;
END
IF
;
END
IF
;
SELECT
COUNT
(
*
)
INTO
@
cnt
FROM
test
.
event_log
WHERE
ev_nm
=
@
evname
;
SELECT
COUNT
(
*
)
INTO
@
cnt
FROM
test
.
event_log
WHERE
ev_nm
=
@
evname
;
IF
@
cnt
<
6
THEN
INSERT
INTO
test
.
event_log
VALUES
(
NULL
,
@
evname
,
@
cnt
+
1
,
current_timestamp
());
INSERT
INTO
test
.
event_log
VALUES
(
NULL
,
@
evname
,
@
cnt
+
1
,
current_timestamp
());
ROLLBACK
;
ROLLBACK
;
END
IF
;
END
;
|
END
;
|
DELIMITER
;
|
DELIMITER
;
|
...
...
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