This commit is contained in:
shoopea 2019-05-16 11:09:51 +08:00
parent d6792bb2a2
commit a4ab3ea7a0

6
sql.go
View File

@ -1753,6 +1753,8 @@ func getSQLListID64(q string) []int64 {
ids []int64
)
fmt.Printf("getSQLListID64 : init : len(ids) = %d\n", len(ids))
rows, err := db.Query(q)
s := fmt.Sprintf("getSQLListID64 : Query(%s)", q)
logOnError(err, s)
@ -1761,9 +1763,13 @@ func getSQLListID64(q string) []int64 {
err = rows.Scan(&id)
logOnError(err, "getSQLListID64 : scan next val")
ids = append(ids, id)
fmt.Printf("getSQLListID64 : append : len(ids) = %d\n", len(ids))
}
err = rows.Err()
logOnError(err, "getSQLListID64 : query end")
rows.Close()
fmt.Printf("getSQLListID64 : done : len(ids) = %d\n", len(ids))
return ids
}