> > That's interesting! > > Does the code of NextResultSet from sql.go shed any light on this? > > https://golang.org/src/database/sql/sql.go?s=76505:76541#L2684 > > Lutz
No. I read it multiple times already. I found test for NextResultSet() in lib/pq. https://github.com/lib/pq/blob/0ac245bc3be505fde6900e1ca0f957c0845cbfa2/go18_test.go#L12 They don't intend calling `NextResultSet()` before reading first result set. They read first result set before calling NextResultSet(). So your example may be unexpected behavior (or bug) of lib/pq. Please file an issue report on lib/pq. -- INADA Naoki <songofaca...@gmail.com> -- 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.