From 5f720cbb4027ca6727ad36339df074c1105b81a1 Mon Sep 17 00:00:00 2001 From: Leon Zhang Date: Wed, 13 Jan 2021 10:58:18 +0800 Subject: [PATCH] code format for pr 267~269 --- ast/token_test.go | 8 ++++---- database/explain.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ast/token_test.go b/ast/token_test.go index 5b3e992..3b4b422 100644 --- a/ast/token_test.go +++ b/ast/token_test.go @@ -169,10 +169,10 @@ select col from tb where col = 1;`), // 17 select col from tb; select col from tb; `), // 18 - []byte(`INSERT /*+ SET_VAR(foreign_key_checks=OFF) */ INTO t2 VALUES(2);`), // 19 - []byte(`select /*!50000 1,*/ 1;`), // 20 - []byte(`UPDATE xxx SET c1=' LOGGER.error(""); }' WHERE id = 2 ;`), // 21 - []byte("UPDATE `xxx` SET aaa='a;' WHERE `id` = 15;"), // 22 + []byte(`INSERT /*+ SET_VAR(foreign_key_checks=OFF) */ INTO t2 VALUES(2);`), // 19 + []byte(`select /*!50000 1,*/ 1;`), // 20 + []byte(`UPDATE xxx SET c1=' LOGGER.error(""); }' WHERE id = 2 ;`), // 21 + []byte("UPDATE `xxx` SET aaa='a;' WHERE `id` = 15;"), // 22 []byte("UPDATE `xxx` SET aaa='a -- b' WHERE `id` = 15; UPDATE `xxx` SET aaa='c -- d' WHERE `id` = 16;"), // 23 // []byte(`/* comment here */ SET MAX_JOIN_SIZE=#`), // 24 } diff --git a/database/explain.go b/database/explain.go index fbdcfef..4b5ba08 100644 --- a/database/explain.go +++ b/database/explain.go @@ -178,7 +178,7 @@ type ExplainJSONDuplicatesRemoval struct { UsingFilesort bool `json:"using_filesort"` BufferResult ExplainJSONBufferResult `json:"buffer_result"` GroupingOperation ExplainJSONGroupingOperation `json:"grouping_operation"` - Table ExplainJSONTable `json:"table"` + Table ExplainJSONTable `json:"table"` } // ExplainJSONOrderingOperation JSON -- GitLab