bind/rust: Fix lifetime issue with pragma_query

Shallow cloning in Row ended up invalidating the pointer
to value
This commit is contained in:
Diego Reis 2025-05-19 20:46:22 -03:00
parent ed0e3b1ba2
commit 4766c9c286
4 changed files with 52 additions and 16 deletions

View file

@ -13,7 +13,7 @@ async fn main() {
.unwrap();
conn.pragma_query("journal_mode", |row| {
println!("{}", row.get_value(0));
println!("{:?}", row.get_value(0));
Ok(())
})
.unwrap();