From 21fcc9070f0690adbbbfa7851bb55079efa192e3 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Thu, 23 Feb 2023 10:48:11 +0100 Subject: [PATCH] sqlite: fix "UPDATE TABLE" typos "TABLE" should refer to the actual table. Signed-off-by: Valentin Rothberg --- libpod/sqlite_state.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libpod/sqlite_state.go b/libpod/sqlite_state.go index a4935c542a..dacb7f041a 100644 --- a/libpod/sqlite_state.go +++ b/libpod/sqlite_state.go @@ -212,17 +212,17 @@ func (s *SQLiteState) Refresh() (defErr error) { }() for id, json := range ctrStates { - if _, err := tx.Exec("UPDATE TABLE ContainerState SET JSON=? WHERE ID=?;", json, id); err != nil { + if _, err := tx.Exec("UPDATE ContainerState SET JSON=? WHERE ID=?;", json, id); err != nil { return fmt.Errorf("updating container state: %w", err) } } for id, json := range podStates { - if _, err := tx.Exec("UPDATE TABLE PodState SET JSON=? WHERE ID=?;", json, id); err != nil { + if _, err := tx.Exec("UPDATE PodState SET JSON=? WHERE ID=?;", json, id); err != nil { return fmt.Errorf("updating pod state: %w", err) } } for name, json := range volumeStates { - if _, err := tx.Exec("UPDATE TABLE VolumeState SET JSON=? WHERE Name=?;", json, name); err != nil { + if _, err := tx.Exec("UPDATE VolumeState SET JSON=? WHERE Name=?;", json, name); err != nil { return fmt.Errorf("updating volume state: %w", err) } }