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

make raw_txt not prepare statements #24

Merged
merged 5 commits into from
Nov 2, 2023

Conversation

conradludgate
Copy link

@conradludgate conradludgate commented Oct 31, 2023

  1. no longer call get_type during query_txt
  2. expose get_type publically so we can still get type info later

let mut parameters = vec![];
let mut it = parameter_description.parameters();
while let Some(oid) = it.next().map_err(Error::parse)? {
let type_ = Type::from_oid(oid).unwrap_or(Type::UNKNOWN);
Copy link
Author

Choose a reason for hiding this comment

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

this is the major difference over the previous impl. it no longer does a get_type call.

Copy link
Member

@petuhovskiy petuhovskiy left a comment

Choose a reason for hiding this comment

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

I see no issues, but note that I'm not good at postgres frontend protocol :)

@conradludgate conradludgate merged commit ce7260d into neon Nov 2, 2023
@conradludgate conradludgate deleted the who-cares-about-custom-types branch November 2, 2023 22:57
conradludgate added a commit to neondatabase/neon that referenced this pull request Nov 3, 2023
## Problem

my prepared statements change in tokio-postgres landed in the latest
release. it didn't work as we intended

## Summary of changes

neondatabase/rust-postgres#24
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