Skip to content

Commit

Permalink
Fix column name in SQL statement
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikvanantwerpen committed Jul 4, 2023
1 parent 73fe46b commit dd67086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stack-graphs/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ impl SQLiteReader {
return Ok(());
}
copious_debugging!(" * Load from database");
let mut stmt = conn.prepare_cached("SELECT json FROM graphs WHERE file = ?")?;
let mut stmt = conn.prepare_cached("SELECT value FROM graphs WHERE file = ?")?;
let value = stmt.query_row([file], |row| row.get::<_, Vec<u8>>(0))?;
let file_graph = rmp_serde::from_slice::<serde::StackGraph>(&value)?;
file_graph.load_into(graph)?;
Expand Down

0 comments on commit dd67086

Please sign in to comment.