mirror of
https://github.com/jackc/pgx.git
synced 2025-05-30 11:14:05 +00:00
Avoid pointless recursive call
This commit is contained in:
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 {
|
||||
if len(c.preallocatedRows) == 0 {
|
||||
c.preallocatedRows = make([]Rows, 64)
|
||||
return c.getRows(sql, args)
|
||||
}
|
||||
|
||||
r := &c.preallocatedRows[len(c.preallocatedRows)-1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user