Skip to content

Commit

Permalink
update: 优化只读状态判断
Browse files Browse the repository at this point in the history
  • Loading branch information
hanchuanchuan committed Jan 2, 2020
1 parent 60b5647 commit 7780bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/session_inception.go
Expand Up @@ -2723,7 +2723,7 @@ func (s *session) checkIsReadOnly() bool {
}
}

return value == "ON"
return value == "ON" || value == "1"
}

func (s *session) parseOptions(sql string) {
Expand Down

0 comments on commit 7780bee

Please sign in to comment.