Skip to content

PGSQL: Allow unconditional selection in pg_select. #5332

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

Closed
wants to merge 1 commit into from

Conversation

OmarEmaraDev
Copy link
Contributor

Previously, pg_select did not allow unconditional selection, where an
empty ids array would result in a function failure.

This patch implements two changes:

  • Make the ids array an optional parameter.
  • Allow the ids array to be empty.

In both cases, unconditional selection happen, which is equivalent to
pg_query('SELECT * FROM <table>;').

Two test cases were added to test the aforementioned changes.

@OmarEmaraDev
Copy link
Contributor Author

Hey @nikic, not sure if you are the one to ping about this. It has been months since this was submitted without any review or feedback. Is there anything I need to do to get this reviewed? Should I post to the mailing list?

@OmarEmaraDev OmarEmaraDev requested a review from devnexen as a code owner October 7, 2023 13:51
@devnexen
Copy link
Member

devnexen commented Oct 7, 2023

Hi @OmarEmaraDev, sorry for late reply for your PR review. Could you please fix the conflicts ? I ll try to review it within the week-end. Cheers.

@devnexen
Copy link
Member

devnexen commented Oct 8, 2023

Once the CI is finished, it would be nice if you could squash all your 7 commits into 1 it would be grand.

Previously, pg_select did not allow unconditional selection, where an
empty ids array would result in a function failure.

This patch implements two changes:
- Make the ids array an optional parameter.
- Allow the ids array to be empty.

In both cases, unconditional selection happen, which is equivalent to
pg_query('SELECT * FROM <table>;').

Two test cases were added to test the aforementioned changes.
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will commit later today. Thanks !

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

Successfully merging this pull request may close these issues.

None yet

2 participants