Skip to content

Commit

Permalink
fix(be): quote 'end' column name for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Sep 16, 2021
1 parent f8b0195 commit 7f52d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/sql/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func (d *SqlDb) CreateTask(task db.Task) (db.Task, error) {

func (d *SqlDb) UpdateTask(task db.Task) error {
_, err := d.exec(
"update task set status=?, start=?, end=? where id=?",
"update task set status=?, start=?, `end`=? where id=?",
task.Status,
task.Start,
task.End,
Expand Down

1 comment on commit 7f52d93

@fiftin
Copy link
Collaborator Author

@fiftin fiftin commented on 7f52d93 Sep 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix for this bug: #736

Please sign in to comment.