Skip to content

Commit

Permalink
fixes new feature for > 1.8 go versions
Browse files Browse the repository at this point in the history
  • Loading branch information
l3pp4rd committed Sep 1, 2017
1 parent 9d03611 commit d76b18b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlmock_go18.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d76b18b

Please sign in to comment.