Skip to content

Commit 33b112f

Browse files
authored
[no-release-notes] protect NewContext call to Now() (#2906)
1 parent 47285a5 commit 33b112f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func NewContext(
358358
c := &Context{
359359
Context: ctx,
360360
Session: nil,
361-
queryTime: ctxNowFunc(),
361+
queryTime: Now(),
362362
tracer: NoopTracer,
363363
}
364364
for _, opt := range opts {

0 commit comments

Comments
 (0)