diff --git a/sql.go b/sql.go index 7d0af9b..2dbe7e9 100644 --- a/sql.go +++ b/sql.go @@ -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 }