From 284e94c61bed101a2465a4b11832842ef20fad8f Mon Sep 17 00:00:00 2001 From: Reminiscent Date: Thu, 23 Dec 2021 11:07:35 +0800 Subject: [PATCH] revert the change --- planner/core/cache.go | 1 - server/driver_tidb.go | 1 - 2 files changed, 2 deletions(-) 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"