remove unused params
This commit is contained in:
parent
01ab8819c7
commit
a035a9297c
|
@ -106,12 +106,8 @@ func (session *Session) Close() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ContextCache enable context cache or not
|
// ContextCache enable context cache or not
|
||||||
func (session *Session) ContextCache(enabled ...bool) *Session {
|
func (session *Session) ContextCache() *Session {
|
||||||
if len(enabled) > 0 {
|
session.statement.enableContextCache = true
|
||||||
session.statement.enableContextCache = enabled[0]
|
|
||||||
} else {
|
|
||||||
session.statement.enableContextCache = true
|
|
||||||
}
|
|
||||||
return session
|
return session
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue