1
0
mirror of https://github.com/zhashkevych/go-sqlxmock.git synced 2024-11-24 08:12:13 +02:00

fixes new feature for > 1.8 go versions

This commit is contained in:
gedi 2017-09-01 10:34:10 +03:00
parent 9d03611ad1
commit d76b18b42f
No known key found for this signature in database
GPG Key ID: 56604CDCCC201556

View File

@ -75,7 +75,7 @@ func (c *sqlmock) PrepareContext(ctx context.Context, query string) (driver.Stmt
select {
case <-time.After(ex.delay):
return &statement{c, query, ex.closeErr}, nil
return &statement{c, ex, query}, nil
case <-ctx.Done():
return nil, ErrCancelled
}