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

[sql] Fix non-normalized queries over native protocol #8315

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

msullivan
Copy link
Member

Queries where we had to fall back to the non-normalized version were
broken under the native protocol, because we were still feeding the
arguments to postgres.

Also, make pg_get_serial_sequence force non-normalization, since it
ignores its arguments. It still fails if actual params are used,
though.

Queries where we had to fall back to the non-normalized version were
broken under the native protocol, because we were still feeding the
arguments to postgres.

Also, make `pg_get_serial_sequence` force non-normalization, since it
ignores its arguments. It still fails if actual params are used,
though.
@msullivan msullivan added the to-backport-6.x PRs that *should* be backported to 6.x label Feb 6, 2025
@msullivan msullivan merged commit c304948 into master Feb 6, 2025
23 checks passed
@msullivan msullivan deleted the sql-normalize-snafu branch February 6, 2025 21:41
@msullivan msullivan added backported-6.x PRs that *have* been backported to 6.x and removed to-backport-6.x PRs that *should* be backported to 6.x labels Feb 6, 2025
msullivan added a commit that referenced this pull request Feb 6, 2025
Queries where we had to fall back to the non-normalized version were
broken under the native protocol, because we were still feeding the
arguments to postgres.

Also, make `pg_get_serial_sequence` force non-normalization, since it
ignores its arguments. It still fails if actual params are used,
though.
Copy link
Contributor

@aljazerzen aljazerzen left a comment

Choose a reason for hiding this comment

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

Thanks

deepbuzin pushed a commit that referenced this pull request Feb 18, 2025
Queries where we had to fall back to the non-normalized version were
broken under the native protocol, because we were still feeding the
arguments to postgres.

Also, make `pg_get_serial_sequence` force non-normalization, since it
ignores its arguments. It still fails if actual params are used,
though.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported-6.x PRs that *have* been backported to 6.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants