Skip to content

Commit 5d1ea2d

Browse files
Nathan GabrielsonNathan Gabrielson
authored andcommitted
Quick fix to if statement logic
1 parent 1a12b85 commit 5d1ea2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ func (e *Engine) QueryWithBindings(ctx *sql.Context, query string, parsed sqlpar
414414
if err != nil {
415415
return nil, nil, nil, err
416416
}
417-
if shouldLock == true {
417+
if shouldLock.(int8) == 1 {
418418
ctx.LockWarnings()
419419
defer ctx.UnlockWarnings()
420420
}

0 commit comments

Comments
 (0)