mirror of https://github.com/jackc/pgx.git
Avoid pointless recursive call
parent
6e2cee6294
commit
932a4d6533
1
query.go
1
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 {
|
func (c *Conn) getRows(sql string, args []interface{}) *Rows {
|
||||||
if len(c.preallocatedRows) == 0 {
|
if len(c.preallocatedRows) == 0 {
|
||||||
c.preallocatedRows = make([]Rows, 64)
|
c.preallocatedRows = make([]Rows, 64)
|
||||||
return c.getRows(sql, args)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
r := &c.preallocatedRows[len(c.preallocatedRows)-1]
|
r := &c.preallocatedRows[len(c.preallocatedRows)-1]
|
||||||
|
|
Loading…
Reference in New Issue