mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-17 08:34:19 +01:00
bind/rust: Fix lifetime issue with pragma_query
Shallow cloning in Row ended up invalidating the pointer to value
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user