diff --git a/planner/core/cache.go b/planner/core/cache.go index 3bc3c7aef0a1a..7e741e203d3dc 100644 --- a/planner/core/cache.go +++ b/planner/core/cache.go @@ -109,7 +109,6 @@ func (key *planCacheKey) Hash() []byte { key.hash = append(key.hash, kv.TiFlash.Name()...) } key.hash = codec.EncodeInt(key.hash, int64(key.selectLimit)) - key.hash = append(key.hash, hack.Slice(key.bindSQL)...) } return key.hash } diff --git a/server/driver_tidb.go b/server/driver_tidb.go index f817b4d85bfcb..0840cceb86c0a 100644 --- a/server/driver_tidb.go +++ b/server/driver_tidb.go @@ -25,7 +25,6 @@ import ( "github.com/pingcap/tidb/parser/charset" "github.com/pingcap/tidb/parser/mysql" "github.com/pingcap/tidb/parser/terror" - "github.com/pingcap/tidb/planner" "github.com/pingcap/tidb/planner/core" "github.com/pingcap/tidb/session" "github.com/pingcap/tidb/sessionctx/stmtctx"