test
This commit is contained in:
parent
cabe3ed394
commit
56fe67649a
5
sql.go
5
sql.go
@ -1014,10 +1014,13 @@ func cleanupJobData() {
|
|||||||
log.Printf("cleanupJobData : JobID : %d\n", jobID)
|
log.Printf("cleanupJobData : JobID : %d\n", jobID)
|
||||||
err = doneStmt.QueryRow(jobID).Scan(&isDone)
|
err = doneStmt.QueryRow(jobID).Scan(&isDone)
|
||||||
logOnError(err, "cleanupJobData : scan doneStmt")
|
logOnError(err, "cleanupJobData : scan doneStmt")
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
if err.Error() == `sql: no rows in result set` {
|
if err.Error() == `sql: no rows in result set` {
|
||||||
|
|
||||||
} else if err != nil {
|
} else {
|
||||||
return
|
return
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
log.Printf("cleanupJobData : isDone : %d\n", isDone)
|
log.Printf("cleanupJobData : isDone : %d\n", isDone)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user