From 30919f63efc4be82874177a9ac64f4f5fcb2c4d0 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 20 Jan 2019 12:36:28 +0800 Subject: [PATCH] fix bug when session resue --- session.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/session.go b/session.go index 2174cd23..2307a414 100644 --- a/session.go +++ b/session.go @@ -59,9 +59,7 @@ type Session struct { lastSQL string lastSQLArgs []interface{} - err error - ctx context.Context - + ctx context.Context sessionType sessionType } @@ -95,7 +93,6 @@ func (session *Session) Init() { session.lastSQLArgs = []interface{}{} session.ctx = session.engine.defaultContext - session.sessionType = engineSession } // Close release the connection from pool