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:
parent
9d03611ad1
commit
d76b18b42f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user