-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
conradludgate
commented
Oct 31, 2023
•
edited
Loading
edited
- no longer call get_type during query_txt
- 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); |
There was a problem hiding this comment.
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.
There was a problem hiding this 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 :)
## 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