2 Commits

1 changed files with 2 additions and 0 deletions
Unified View
  1. +2
    -0
      db.go

+ 2
- 0
db.go View File

@ -406,6 +406,7 @@ func GetRow(dbName, table_name, alias string, titles string, join [][]string, wh
} }
if err != nil { if err != nil {
log.Println("DB error:", err)
rows.Close() rows.Close()
return count, info, err return count, info, err
} }
@ -436,6 +437,7 @@ func GetRow(dbName, table_name, alias string, titles string, join [][]string, wh
} }
rows.Close() rows.Close()
if rowerr != nil { if rowerr != nil {
log.Println("DB row error:", rowerr)
return count, info, rowerr return count, info, rowerr
} }
return count, info, nil return count, info, nil


Loading…
Cancel
Save