From 02161658578b61cc7044cc4be34e1ff7c00fe644 Mon Sep 17 00:00:00 2001 From: shoopea Date: Tue, 20 Oct 2020 11:25:14 +0200 Subject: [PATCH] test --- sql.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sql.go b/sql.go index 8627db0..6dd7e1f 100644 --- a/sql.go +++ b/sql.go @@ -1014,7 +1014,9 @@ func cleanupJobData() { log.Printf("cleanupJobData : JobID : %d\n", jobID) err = doneStmt.QueryRow(jobID).Scan(&isDone) logOnError(err, "cleanupJobData : scan doneStmt") - if err != nil { + if err.Error() == `sql: no rows in result set` { + + } else if err != nil { return } log.Printf("cleanupJobData : isDone : %d\n", isDone)