fix minor bugs

This commit is contained in:
Suraj 2016-01-31 19:40:15 +05:30
parent 58d60f1615
commit eb42e38fae
1 changed files with 1 additions and 1 deletions

View File

@ -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 {