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

FETCH from CURSOR inside a function should be disabled without a destination #2506

Conversation

shardgupta
Copy link
Contributor

@shardgupta shardgupta commented Apr 17, 2024

Description

SELECT statements included within a function cannot return data to a client. This operation was not blocked with the FETCH CURSOR operation. This commit aim to restrict defining such function.

Issues Resolved: BABEL-4586

Cherry-pick from 4_X

shardgupta and others added 2 commits April 17, 2024 17:00
…ination (babelfish-for-postgresql#2411)

SELECT statements included within a function cannot return data to a client. This operation was not blocked with the FETCH CURSOR operation. This commit aim to restrict defining such function.

Issues Resolved: BABEL-4584

Signed-off-by: Shard Gupta <[email protected]>
@thephantomthief thephantomthief self-requested a review April 18, 2024 09:38
Copy link
Contributor

@jsudrik jsudrik left a comment

Choose a reason for hiding this comment

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

Cheerypick from 4_x. Approved.

@jsudrik jsudrik merged commit 8461054 into babelfish-for-postgresql:BABEL_2_X_DEV Apr 18, 2024
29 checks passed
@shardgupta shardgupta deleted the jira-babel-4586-2x branch November 8, 2024 09:31
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.

3 participants