From bbe508fdd865eb34d3a87a5d68cb2f376481ca1c Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Mon, 22 Nov 2021 13:32:04 -0700 Subject: [PATCH] src: fix build --- src/main.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main.go b/src/main.go index e312620..ee7bee8 100644 --- a/src/main.go +++ b/src/main.go @@ -144,16 +144,7 @@ func newTester(name string) *tester { func setHashJoinConcurrency(db *sql.DB) { if _, err := db.Exec("SET @@tidb_hash_join_concurrency=1"); err != nil { - var ignoreErr = false - if warning, ok := err.(mysql.MySQLWarnings); ok { - // code "1287" is ErrWarnDeprecatedSyntax - if len(warning) > 0 && warning[0].Code == "1287" { - ignoreErr = true - } - } - if !ignoreErr { - log.Fatalf("Executing \"SET @@tidb_hash_join_concurrency=1\" err[%v]", err) - } + log.Fatalf("Executing \"SET @@tidb_hash_join_concurrency=1\" err[%v]", err) } }