The original question was how to determine if the result had rows. Well it
turns out that golang's sql packa wi; generate the exception"ErrNoRows" if
there are no rows, therefore, it is not necessary to test the rows.Next()
and consume the first row differently than the second and certainly not
counting the rows.

/r

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to