Avoid pointless recursive call

This commit is contained in:
Jack Christensen 2016-04-30 12:58:36 -05:00
parent 6e2cee6294
commit 932a4d6533

View File

@ -463,7 +463,6 @@ func (c *Conn) Query(sql string, args ...interface{}) (*Rows, error) {
func (c *Conn) getRows(sql string, args []interface{}) *Rows {
if len(c.preallocatedRows) == 0 {
c.preallocatedRows = make([]Rows, 64)
return c.getRows(sql, args)
}
r := &c.preallocatedRows[len(c.preallocatedRows)-1]