Skip to content

Commit

Permalink
Use array instead of vec
Browse files Browse the repository at this point in the history
  • Loading branch information
nyovaya committed Aug 24, 2024
1 parent d474c10 commit 285d9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/testlibpq3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
*/

/* Here is our out-of-line parameter value */
let param_values: Vec<Option<&[u8]>> = vec![Some(b"joe's place\0")];
let param_values: [Option<&[u8]>; 1] = [Some(b"joe's place\0")];

let res = conn.exec_params(
"SELECT * FROM test1 WHERE t = $1",
Expand Down

0 comments on commit 285d9d2

Please sign in to comment.