Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Throwing error for parsing FOR loop statement #26

Open
mohitchawda opened this issue Dec 22, 2014 · 0 comments
Open

Throwing error for parsing FOR loop statement #26

mohitchawda opened this issue Dec 22, 2014 · 0 comments

Comments

@mohitchawda
Copy link

Hi,
I amusing this parser to parse Oracle SQl based files.
Following FOR statements are getting parsed succesfully,
1.
for i in 1 ..l_line_tbl.xyz()
LOOP
l_line_xyz(i).random_ship_date := l_random_date;
l_line_xyz(i).random_set_id := x_random_set_id;
END LOOP;
2.
for i in 1..5
LOOP
l_line_xyz(i).random_ship_date := l_random_date;
l_line_xyz(i).random_set_id := x_random_set_id;
END LOOP;
3.
for i in 1 ..5
LOOP
l_line_xyz(i).random_ship_date := l_random_date;
l_line_xyz(i).random_set_id := x_random_set_id;
END LOOP;

But, this is failing,
1.
for i in 1..l_line_tbl.xyz()
LOOP
l_line_xyz(i).random_ship_date := l_random_date;
l_line_xyz(i).random_set_id := x_random_set_id;
END LOOP;

If upper bound is a function call and there is no space between lower bound and double period, then is not parsing.

Has anyone encountered this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant