Skip to content

Commit 7780bee

Browse files
committed
update: 优化只读状态判断
1 parent 60b5647 commit 7780bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session/session_inception.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2723,7 +2723,7 @@ func (s *session) checkIsReadOnly() bool {
27232723
}
27242724
}
27252725

2726-
return value == "ON"
2726+
return value == "ON" || value == "1"
27272727
}
27282728

27292729
func (s *session) parseOptions(sql string) {

0 commit comments

Comments
 (0)