diff --git a/ast/token_test.go b/ast/token_test.go index 5b3e992f23c309b651fab7a8fb674e7a2a21113c..3b4b422e2745be118c7273546fd4f215136ba15c 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 fbdcfef61638908e500566553d2de857d3d29ba6..4b5ba088bf644e304673097fe2792f17fe7b9e44 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