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

Fix OBJECT_ID() to exclude indexes #3495

Open
wants to merge 5 commits into
base: BABEL_5_X_DEV
Choose a base branch
from

Conversation

roshan0708
Copy link
Contributor

Description

This commit modifies OBJECT_ID function to exclude indexes when searching for objects, ensuring that it correctly returns OIDs for constraints and other objects without mistakenly returning index OIDs.

Issues Resolved

JIRA-5303

Test Scenarios Covered

  • Use case based - y

  • Boundary conditions -

  • Arbitrary inputs -

  • Negative test cases -

  • Minor version upgrade tests -

  • Major version upgrade tests -

  • Performance tests -

  • Tooling impact -

  • Client tests -

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

This commit modifies OBJECT_ID function to exclude indexes
when searching for objects, ensuring that it correctly returns OIDs
for constraints and other objects without mistakenly returning
index OIDs.

Task: JIRA-5303
Signed-off-by: Roshan Kanwar <rskanwar@amazon.com>
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 13377164911

Details

  • 12 of 12 (100.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.001%) to 75.017%

Files with Coverage Reduction New Missed Lines %
contrib/babelfishpg_tds/src/backend/tds/tdscomm.c 2 76.03%
Totals Coverage Status
Change from base Build 13365752176: 0.001%
Covered Lines: 47137
Relevant Lines: 62835

💛 - Coveralls

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.

4 participants