From 7f6cfcb2e653b4fb74789f2fdd15d014e53a820b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Wed, 21 Jul 2021 07:15:36 +0200 Subject: [PATCH] executor: Future proof TiDB specific comment (#26394) --- executor/show.go | 2 +- executor/show_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/executor/show.go b/executor/show.go index 2e7d4a2747..8c017d2f64 100644 --- a/executor/show.go +++ b/executor/show.go @@ -1015,7 +1015,7 @@ func ConstructResultOfShowCreateTable(ctx sessionctx.Context, tableInfo *model.T } if tableInfo.ShardRowIDBits > 0 { - fmt.Fprintf(buf, "/*!90000 SHARD_ROW_ID_BITS=%d ", tableInfo.ShardRowIDBits) + fmt.Fprintf(buf, " /*T! SHARD_ROW_ID_BITS=%d ", tableInfo.ShardRowIDBits) if tableInfo.PreSplitRegions > 0 { fmt.Fprintf(buf, "PRE_SPLIT_REGIONS=%d ", tableInfo.PreSplitRegions) } diff --git a/executor/show_test.go b/executor/show_test.go index 120497e797..d1e929af13 100644 --- a/executor/show_test.go +++ b/executor/show_test.go @@ -679,7 +679,7 @@ func (s *testSuite5) TestShowCreateTable(c *C) { "t CREATE TABLE `t` (\n"+ " `a` int(11) DEFAULT NULL,\n"+ " `b` int(11) DEFAULT NULL\n"+ - ") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin/*!90000 SHARD_ROW_ID_BITS=4 PRE_SPLIT_REGIONS=3 */", + ") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin /*T! SHARD_ROW_ID_BITS=4 PRE_SPLIT_REGIONS=3 */", )) tk.MustExec("drop table t")