From 7f52d934413f85d7bcd0bf1c3e16bf77caadf2ad Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Fri, 17 Sep 2021 03:19:34 +0500 Subject: [PATCH] fix(be): quote 'end' column name for postgres --- db/sql/task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/sql/task.go b/db/sql/task.go index d9a9ed79..898dc23c 100644 --- a/db/sql/task.go +++ b/db/sql/task.go @@ -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,