Commit e63f6f32 authored by unknown's avatar unknown

Made test case platform independent.

parent f9d36194
...@@ -585,8 +585,10 @@ SET AUTOCOMMIT = 0; ...@@ -585,8 +585,10 @@ 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
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;
SELECT COUNT(*) INTO @cnt FROM test.event_log WHERE ev_nm = @evname; SELECT COUNT(*) INTO @cnt FROM test.event_log WHERE ev_nm = @evname;
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;
......
...@@ -683,8 +683,10 @@ DO BEGIN ...@@ -683,8 +683,10 @@ 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;
INSERT INTO test.event_log VALUES (NULL,@evname,@cnt+1,current_timestamp()); IF @cnt <= 6 THEN
COMMIT; 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; SELECT COUNT(*) INTO @cnt FROM test.event_log WHERE ev_nm = @evname;
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment