Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit dd67086

Browse files
author
Hendrik van Antwerpen
committed
Fix column name in SQL statement
1 parent 73fe46b commit dd67086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stack-graphs/src/storage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ impl SQLiteReader {
523523
return Ok(());
524524
}
525525
copious_debugging!(" * Load from database");
526-
let mut stmt = conn.prepare_cached("SELECT json FROM graphs WHERE file = ?")?;
526+
let mut stmt = conn.prepare_cached("SELECT value FROM graphs WHERE file = ?")?;
527527
let value = stmt.query_row([file], |row| row.get::<_, Vec<u8>>(0))?;
528528
let file_graph = rmp_serde::from_slice::<serde::StackGraph>(&value)?;
529529
file_graph.load_into(graph)?;

0 commit comments

Comments
 (0)