darold / darold/ora2pg

All Overloading Functions inside the Package are not Extracted .

Open
#985 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Perl
Stars
1.2k
Forks
378
PR merge metrics
No merged PRs in 30d

Description

While doing extraction for Packages, if we have multiple overloaded functions present in the Package Body only the last function coming in sequence of extraction is getting extracted and rest others are not part of extraction.

Package functions are been extracted into specific files with naming convention as :

<package_name>.<function_name>_package.sql.

I think as we generate single files for specific function, when we have multiple functions with same name they are getting over-written in same file and only function getting extracted last with same name is getting placed in the file.

Is there any possibility if we change method from replace mode to append mode. this way we may have multiple functions with same name extracted in same file.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the package extraction logic and the naming convention for generated <package_name>.<function_name>_package.sql files. Reproduce the issue using an Oracle package body with multiple overloaded functions sharing a name, then inspect whether the generated file contains every function rather than only the last one. Done means all overloaded functions are preserved in the extraction output.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.