coopernurse/gorp — pull request #8 by nexneo (2012-10-27 10:42:45+00:00)
Title: sql.Rows.Next() can return false and at same time store error in lasterr.

Take a look at code http://golang.org/src/pkg/database/sql/sql.go?s=23476:23503#L900

`Next()` calls `driver.Rows.Next()` and store returned error into `lasterr` which is accessible via rows.Err()

It is important to check that value otherwise select will behave just like everything is normal and might skip few rows silently.