Browse Source

增加调试

master
guzeng 1 year ago
parent
commit
628562e53e
1 changed files with 2 additions and 0 deletions
  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 {
log.Println("DB error:", err)
rows.Close()
return count, info, err
}
@ -436,6 +437,7 @@ func GetRow(dbName, table_name, alias string, titles string, join [][]string, wh
}
rows.Close()
if rowerr != nil {
log.Println("DB row error:", rowerr)
return count, info, rowerr
}
return count, info, nil


Loading…
Cancel
Save