mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-07-24 04:45:00 +00: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:
parent
ed0e3b1ba2
commit
4766c9c286
4 changed files with 52 additions and 16 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue