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

Parser subFunction + comment #46

Closed
zabel-xyz opened this issue May 27, 2018 · 1 comment
Closed

Parser subFunction + comment #46

zabel-xyz opened this issue May 27, 2018 · 1 comment
Labels

Comments

@zabel-xyz
Copy link
Owner

Bug 1: pSubFunction is detected twice (comment + function)

-- test with subfunction
  procedure pMainProcedure(param1 in varchar2)
  is
    x number;

    /**
     * function pSubFunction
    */
    function pSubFunction(param1 in number)
    is
    begin
      -- some code to execute
      return 3;
    end pSubFunction;
  begin
    -- some code to execute

    -- call to subFunction
    x = pSubFunction(2);
  end pMainProcedure;

Bug 2: parsing stop

-- test with subfunction
  procedure pMainProcedure(param1 in varchar2)
  is
    x number;
  
   -- begin

    function pSubFunction(param1 in number)
    is
    begin
      -- some code to execute
      return 3;
    end pSubFunction;
  begin
    -- some code to execute

    -- call to subFunction
    x = pSubFunction(2);
  end pMainProcedure;

@zabel-xyz
Copy link
Owner Author

Fix in version 1.3.4

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

No branches or pull requests

1 participant