Skip to content

Commit eddc6c9

Browse files
author
James Cor
committed
deleting function entirely
1 parent 8e5d393 commit eddc6c9

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

sql/plan/transaction_committing_iter.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,3 @@ func IsSessionAutocommit(ctx *sql.Context) (bool, error) {
2727
}
2828
return sql.ConvertToBool(ctx, autoCommitSessionVar)
2929
}
30-
31-
func ReadCommitted(ctx *sql.Context) bool {
32-
val, err := ctx.GetSessionVariable(ctx, "transaction_isolation")
33-
if err != nil {
34-
return false
35-
}
36-
37-
valStr, ok := val.(string)
38-
if !ok {
39-
return false
40-
}
41-
42-
return valStr == "READ-COMMITTED"
43-
}

0 commit comments

Comments
 (0)