test
This commit is contained in:
parent
d6792bb2a2
commit
a4ab3ea7a0
6
sql.go
6
sql.go
@ -1753,6 +1753,8 @@ func getSQLListID64(q string) []int64 {
|
|||||||
ids []int64
|
ids []int64
|
||||||
)
|
)
|
||||||
|
|
||||||
|
fmt.Printf("getSQLListID64 : init : len(ids) = %d\n", len(ids))
|
||||||
|
|
||||||
rows, err := db.Query(q)
|
rows, err := db.Query(q)
|
||||||
s := fmt.Sprintf("getSQLListID64 : Query(%s)", q)
|
s := fmt.Sprintf("getSQLListID64 : Query(%s)", q)
|
||||||
logOnError(err, s)
|
logOnError(err, s)
|
||||||
@ -1761,9 +1763,13 @@ func getSQLListID64(q string) []int64 {
|
|||||||
err = rows.Scan(&id)
|
err = rows.Scan(&id)
|
||||||
logOnError(err, "getSQLListID64 : scan next val")
|
logOnError(err, "getSQLListID64 : scan next val")
|
||||||
ids = append(ids, id)
|
ids = append(ids, id)
|
||||||
|
fmt.Printf("getSQLListID64 : append : len(ids) = %d\n", len(ids))
|
||||||
}
|
}
|
||||||
err = rows.Err()
|
err = rows.Err()
|
||||||
logOnError(err, "getSQLListID64 : query end")
|
logOnError(err, "getSQLListID64 : query end")
|
||||||
rows.Close()
|
rows.Close()
|
||||||
|
|
||||||
|
fmt.Printf("getSQLListID64 : done : len(ids) = %d\n", len(ids))
|
||||||
|
|
||||||
return ids
|
return ids
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user