sqlite: SaveVolume: fix syntax error updating the volumes table

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
Valentin Rothberg 2023-02-23 10:22:06 +01:00
parent 7c11f7e174
commit 3f96b0ef28
1 changed files with 1 additions and 1 deletions

View File

@ -1908,7 +1908,7 @@ func (s *SQLiteState) SaveVolume(volume *Volume) (defErr error) {
}
}()
results, err := tx.Exec("UPDATE TABLE VolumeState SET JSON=? WHERE Name=?;", stateJSON, volume.Name())
results, err := tx.Exec("UPDATE VolumeState SET JSON=? WHERE Name=?;", stateJSON, volume.Name())
if err != nil {
return fmt.Errorf("updating volume %s state in DB: %w", volume.Name(), err)
}