Skip to content

Commit

Permalink
Add backticks to all SQLs (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
roger2hk authored Jul 10, 2024
1 parent 4453cce commit a312398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
)

const (
selectCheckpointByIDSQL = "SELECT note FROM Checkpoint WHERE id = ?"
replaceCheckpointSQL = "REPLACE INTO Checkpoint (id, note) VALUES (?, ?)"
selectCheckpointByIDSQL = "SELECT `note` FROM `Checkpoint` WHERE `id` = ?"
replaceCheckpointSQL = "REPLACE INTO `Checkpoint` (`id`, `note`) VALUES (?, ?)"

checkpointID = 0
)
Expand Down

0 comments on commit a312398

Please sign in to comment.