Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CBRD-24941] update 5 TCs: change % with MOD #2002

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ begin
<<inner>>
for j in 1 .. 3 loop
dbms_output.put_line('j=' || j);
continue outer when j % 2 = 0;
continue inner when j % 2 = 1;
continue outer when j mod 2 = 0;
continue inner when j mod 2 = 1;
dbms_output.put_line('unreachable');
end loop;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
create or replace procedure t(i int) as
begin
for i in 1 .. 5 loop
continue when i % 2 = 0;
continue when i mod 2 = 0;
dbms_output.put_line('i=' || i);
end loop;
end;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ begin
for i in 1 .. 5 loop

for j in 1 .. 5 loop
continue when j % 2 = 0;
continue when j mod 2 = 0;
dbms_output.put_line('j=' || j);
end loop;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
create or replace procedure t(i int) as
begin
for i in 1 .. 5 loop
exit when i % 2 = 0;
exit when i mod 2 = 0;
dbms_output.put_line('i=' || i);
end loop;
dbms_output.put_line('done');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ begin
for i in 1 .. 5 loop

for j in 1 .. 5 loop
exit when j % 2 = 0;
exit when j mod 2 = 0;
dbms_output.put_line('j=' || j);
end loop;

Expand Down