This commit is contained in:
shoopea 2019-05-11 12:57:38 +08:00
parent 56abf3b086
commit de3fecbb11

4
sql.go
View File

@ -1381,7 +1381,7 @@ func setJobDone(jobId int64) error {
}
defer stmt.Close()
_, err := stmt.Exec(time.Now(), jobId)
_, err = stmt.Exec(time.Now(), jobId)
s := fmt.Sprintf("setJobDone, update obj_job(%d)", jobId)
logOnError(err, s)
if err != nil {
@ -1398,7 +1398,7 @@ func setJobStart(jobId int64) error {
}
defer stmt.Close()
_, err := stmt.Exec(time.Now(), jobId)
_, err = stmt.Exec(time.Now(), jobId)
s := fmt.Sprintf("setJobStart, update obj_job(%d)", jobId)
logOnError(err, s)
if err != nil {