diff options
author | unknown <igor@olga.mysql.com> | 2007-07-01 11:00:29 -0700 |
---|---|---|
committer | unknown <igor@olga.mysql.com> | 2007-07-01 11:00:29 -0700 |
commit | de0ba5c894df8f86512d025f4196d62687efb1bb (patch) | |
tree | 6e1dab10fe7599b78fc21c8b86dd214a1f38c6b6 /mysql-test/t/events_bugs.test | |
parent | e63f6f3223ff51318d5a6609df74039609564100 (diff) | |
download | mariadb-git-de0ba5c894df8f86512d025f4196d62687efb1bb.tar.gz |
Corrected a test case.
Diffstat (limited to 'mysql-test/t/events_bugs.test')
-rw-r--r-- | mysql-test/t/events_bugs.test | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mysql-test/t/events_bugs.test b/mysql-test/t/events_bugs.test index 5e326d28ab9..4186b4701fa 100644 --- a/mysql-test/t/events_bugs.test +++ b/mysql-test/t/events_bugs.test @@ -668,7 +668,7 @@ CREATE USER evtest1@localhost; SET PASSWORD FOR evtest1@localhost = password('ev1'); REVOKE ALL PRIVILEGES, GRANT OPTION FROM 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; --echo connection e1; @@ -683,13 +683,15 @@ DO BEGIN SET @evname = 'ev_sched_1823'; SET @cnt = 0; 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()); COMMIT; END IF; SELECT COUNT(*) INTO @cnt FROM test.event_log WHERE ev_nm = @evname; - INSERT INTO test.event_log VALUES (NULL,@evname,@cnt+1,current_timestamp()); - ROLLBACK; + IF @cnt < 6 THEN + INSERT INTO test.event_log VALUES (NULL,@evname,@cnt+1,current_timestamp()); + ROLLBACK; + END IF; END;| DELIMITER ;| |