Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
古剑诛仙
soar
提交
5f720cbb
S
soar
项目概览
古剑诛仙
/
soar
与 Fork 源项目一致
Fork自
Xiaomi / soar
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
soar
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5f720cbb
编写于
1月 13, 2021
作者:
martianzhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
code format for pr 267~269
上级
88cdca35
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
5 deletion
+5
-5
ast/token_test.go
ast/token_test.go
+4
-4
database/explain.go
database/explain.go
+1
-1
未找到文件。
ast/token_test.go
浏览文件 @
5f720cbb
...
@@ -169,10 +169,10 @@ select col from tb where col = 1;`), // 17
...
@@ -169,10 +169,10 @@ select col from tb where col = 1;`), // 17
select col from tb;
select col from tb;
select col from tb;
select col from tb;
`
),
// 18
`
),
// 18
[]
byte
(
`INSERT /*+ SET_VAR(foreign_key_checks=OFF) */ INTO t2 VALUES(2);`
),
// 19
[]
byte
(
`INSERT /*+ SET_VAR(foreign_key_checks=OFF) */ INTO t2 VALUES(2);`
),
// 19
[]
byte
(
`select /*!50000 1,*/ 1;`
),
// 20
[]
byte
(
`select /*!50000 1,*/ 1;`
),
// 20
[]
byte
(
`UPDATE xxx SET c1=' LOGGER.error(""); }' WHERE id = 2 ;`
),
// 21
[]
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;' 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
(
"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
// []byte(`/* comment here */ SET MAX_JOIN_SIZE=#`), // 24
}
}
...
...
database/explain.go
浏览文件 @
5f720cbb
...
@@ -178,7 +178,7 @@ type ExplainJSONDuplicatesRemoval struct {
...
@@ -178,7 +178,7 @@ type ExplainJSONDuplicatesRemoval struct {
UsingFilesort
bool
`json:"using_filesort"`
UsingFilesort
bool
`json:"using_filesort"`
BufferResult
ExplainJSONBufferResult
`json:"buffer_result"`
BufferResult
ExplainJSONBufferResult
`json:"buffer_result"`
GroupingOperation
ExplainJSONGroupingOperation
`json:"grouping_operation"`
GroupingOperation
ExplainJSONGroupingOperation
`json:"grouping_operation"`
Table
ExplainJSONTable
`json:"table"`
Table
ExplainJSONTable
`json:"table"`
}
}
// ExplainJSONOrderingOperation JSON
// ExplainJSONOrderingOperation JSON
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录