remove unused params

This commit is contained in:
Lunny Xiao 2018-09-21 22:05:48 +08:00
parent 01ab8819c7
commit a035a9297c
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 2 additions and 6 deletions

View File

@ -106,12 +106,8 @@ func (session *Session) Close() {
}
// ContextCache enable context cache or not
func (session *Session) ContextCache(enabled ...bool) *Session {
if len(enabled) > 0 {
session.statement.enableContextCache = enabled[0]
} else {
session.statement.enableContextCache = true
}
func (session *Session) ContextCache() *Session {
session.statement.enableContextCache = true
return session
}