From eb42e38fae5bcb167d6a1b383831e169d7274594 Mon Sep 17 00:00:00 2001 From: Suraj Date: Sun, 31 Jan 2016 19:40:15 +0530 Subject: [PATCH] fix minor bugs --- db/tasks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/tasks.go b/db/tasks.go index 2b911b2..15574ae 100644 --- a/db/tasks.go +++ b/db/tasks.go @@ -163,7 +163,7 @@ func UpdateTask(id int, title string, content string) error { } func taskQuery(sql string, args ...interface{}) error { - SQL := database.prepare("update task set title=?, content=? where id=?") + SQL := database.prepare(sql) tx := database.begin() _, err = tx.Stmt(SQL).Exec(args...) if err != nil {