From dd670865b8fae31a555094a501dab373c28e5c26 Mon Sep 17 00:00:00 2001 From: Hendrik van Antwerpen Date: Tue, 4 Jul 2023 17:44:34 +0200 Subject: [PATCH] Fix column name in SQL statement --- stack-graphs/src/storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack-graphs/src/storage.rs b/stack-graphs/src/storage.rs index 2ab54c562..89d9a843b 100644 --- a/stack-graphs/src/storage.rs +++ b/stack-graphs/src/storage.rs @@ -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>(0))?; let file_graph = rmp_serde::from_slice::(&value)?; file_graph.load_into(graph)?;