sfackler / rust-postgres

Native PostgreSQL driver for the Rust programming language
Apache License 2.0
3.43k stars 436 forks source link

Add poosibility to pass null params in query_raw_txt() #1043

Closed kelvich closed 1 year ago

kelvich commented 1 year ago

Previous coding only allowed passing vector of text values as params, but that does not allow to distinguish between nulls and 4-byte strings with "null" written in them. Change query_raw_txt params argument to accept Vec<Option> instead.