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

Throwing error for parsing FOR loop statement #26

@mohitchawda

Description

@mohitchawda

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions