Skip to content

Backport : Revert "Use sys.all_objects for accurate function and procedure filtering - #2759

Closed
Muskan Gupta (muskan124947) wants to merge 1 commit into
release/13.2from
hotfix-release-13.2
Closed

Backport : Revert "Use sys.all_objects for accurate function and procedure filtering#2759
Muskan Gupta (muskan124947) wants to merge 1 commit into
release/13.2from
hotfix-release-13.2

Conversation

@muskan124947

Copy link
Copy Markdown
Contributor

Backported PR: #2751
This reverts commit 27a0bcd.

This change is being reverted due to differences in behavior observed between:

- getProcedures() vs getProcedureColumns()
- getFunctions() vs getFunctionColumns()

Specifically:

  • getProcedures() and getFunctions() return procedure/function names without numbered suffixes, since sys.all_objects does not expose numbered procedures.

  • In contrast, getProcedureColumns() and getFunctionColumns() query sp_sproc_columns, which does return numbered procedures, leading to inconsistencies across these APIs.

There was an effort done to make getProcedureColumns() and getFunctionColumns() work in #2743.
This PR addressed these differences, but SQL Server still supports numbered procedures, and users can benefit from grouped procedures (see here : sp_proc_columns)

To maintain compatibility and avoid unexpected discrepancies, this PR reverts #2705 and restores the original behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants