From 932a4d6533fb6ad000b711ea55cadef62e84af1e Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 30 Apr 2016 12:58:36 -0500 Subject: [PATCH] Avoid pointless recursive call --- query.go | 1 - 1 file changed, 1 deletion(-) diff --git a/query.go b/query.go index aa5ae741..76217e7b 100644 --- a/query.go +++ b/query.go @@ -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]