2
0

Update to more effecient pgconn

This commit is contained in:
Jack Christensen
2019-04-19 15:55:45 -05:00
parent abdd5a4a50
commit ae73ca2da1
7 changed files with 33 additions and 17 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ func (p *Pool) Stat() *Stat {
func (p *Pool) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error) {
c, err := p.Acquire(ctx)
if err != nil {
return "", err
return nil, err
}
defer c.Release()