Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaomi
soar
提交
6dcd3fc9
S
soar
项目概览
Xiaomi
/
soar
大约 1 年 前同步成功
通知
388
Star
8512
Fork
1328
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
6dcd3fc9
编写于
12月 28, 2018
作者:
martianzhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pingcap/parser daily update
上级
59094bf3
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
49 addition
and
40 deletion
+49
-40
vendor/github.com/pingcap/parser/ast/dml.go
vendor/github.com/pingcap/parser/ast/dml.go
+11
-4
vendor/github.com/pingcap/parser/model/ddl.go
vendor/github.com/pingcap/parser/model/ddl.go
+2
-0
vendor/vendor.json
vendor/vendor.json
+36
-36
未找到文件。
vendor/github.com/pingcap/parser/ast/dml.go
浏览文件 @
6dcd3fc9
...
@@ -118,8 +118,8 @@ func (n *Join) Restore(ctx *RestoreCtx) error {
...
@@ -118,8 +118,8 @@ func (n *Join) Restore(ctx *RestoreCtx) error {
ctx
.
JoinLevel
--
ctx
.
JoinLevel
--
if
n
.
On
!=
nil
{
if
n
.
On
!=
nil
{
ctx
.
Write
KeyWord
(
" ON
"
)
ctx
.
Write
Plain
(
"
"
)
if
err
:=
n
.
On
.
Expr
.
Restore
(
ctx
);
err
!=
nil
{
if
err
:=
n
.
On
.
Restore
(
ctx
);
err
!=
nil
{
return
errors
.
Annotate
(
err
,
"An error occurred while restore Join.On"
)
return
errors
.
Annotate
(
err
,
"An error occurred while restore Join.On"
)
}
}
}
}
...
@@ -325,7 +325,11 @@ type OnCondition struct {
...
@@ -325,7 +325,11 @@ type OnCondition struct {
// Restore implements Node interface.
// Restore implements Node interface.
func
(
n
*
OnCondition
)
Restore
(
ctx
*
RestoreCtx
)
error
{
func
(
n
*
OnCondition
)
Restore
(
ctx
*
RestoreCtx
)
error
{
return
errors
.
New
(
"Not implemented"
)
ctx
.
WriteKeyWord
(
"ON "
)
if
err
:=
n
.
Expr
.
Restore
(
ctx
);
err
!=
nil
{
return
errors
.
Annotate
(
err
,
"An error occurred while restore OnCondition.Expr"
)
}
return
nil
}
}
// Accept implements Node Accept interface.
// Accept implements Node Accept interface.
...
@@ -551,7 +555,10 @@ type TableRefsClause struct {
...
@@ -551,7 +555,10 @@ type TableRefsClause struct {
// Restore implements Node interface.
// Restore implements Node interface.
func
(
n
*
TableRefsClause
)
Restore
(
ctx
*
RestoreCtx
)
error
{
func
(
n
*
TableRefsClause
)
Restore
(
ctx
*
RestoreCtx
)
error
{
return
errors
.
New
(
"Not implemented"
)
if
err
:=
n
.
TableRefs
.
Restore
(
ctx
);
err
!=
nil
{
return
errors
.
Annotate
(
err
,
"An error occurred while restore TableRefsClause.TableRefs"
)
}
return
nil
}
}
// Accept implements Node Accept interface.
// Accept implements Node Accept interface.
...
...
vendor/github.com/pingcap/parser/model/ddl.go
浏览文件 @
6dcd3fc9
...
@@ -53,6 +53,7 @@ const (
...
@@ -53,6 +53,7 @@ const (
ActionCreateView
ActionType
=
21
ActionCreateView
ActionType
=
21
ActionModifyTableCharsetAndCollate
ActionType
=
22
ActionModifyTableCharsetAndCollate
ActionType
=
22
ActionTruncateTablePartition
ActionType
=
23
ActionTruncateTablePartition
ActionType
=
23
ActionDropView
ActionType
=
24
)
)
// AddIndexStr is a string related to the operation of "add index".
// AddIndexStr is a string related to the operation of "add index".
...
@@ -82,6 +83,7 @@ var actionMap = map[ActionType]string{
...
@@ -82,6 +83,7 @@ var actionMap = map[ActionType]string{
ActionCreateView
:
"create view"
,
ActionCreateView
:
"create view"
,
ActionModifyTableCharsetAndCollate
:
"modify table charset and collate"
,
ActionModifyTableCharsetAndCollate
:
"modify table charset and collate"
,
ActionTruncateTablePartition
:
"truncate partition"
,
ActionTruncateTablePartition
:
"truncate partition"
,
ActionDropView
:
"drop view"
,
}
}
// String return current ddl action in string
// String return current ddl action in string
...
...
vendor/vendor.json
浏览文件 @
6dcd3fc9
...
@@ -113,104 +113,104 @@
...
@@ -113,104 +113,104 @@
{
{
"checksumSHA1"
:
"KLFQyY05NrGhQCM+Lthp/X9/YcE="
,
"checksumSHA1"
:
"KLFQyY05NrGhQCM+Lthp/X9/YcE="
,
"path"
:
"github.com/pingcap/parser"
,
"path"
:
"github.com/pingcap/parser"
,
"revision"
:
"
60752e9154861ea1890cff3cdf84e75e67b02281
"
,
"revision"
:
"
a4bdcab31117b4b4cbfbdb792307e3332534950d
"
,
"revisionTime"
:
"2018-12-2
6T14:52:2
8Z"
"revisionTime"
:
"2018-12-2
8T02:29:3
8Z"
},
},
{
{
"checksumSHA1"
:
"
s7vZWQ/fyhgaPag6j8hQnZ3t3SY
="
,
"checksumSHA1"
:
"
IkdWWfeUBw+gwiERRCMHYSBb8aA
="
,
"path"
:
"github.com/pingcap/parser/ast"
,
"path"
:
"github.com/pingcap/parser/ast"
,
"revision"
:
"
60752e9154861ea1890cff3cdf84e75e67b02281
"
,
"revision"
:
"
a4bdcab31117b4b4cbfbdb792307e3332534950d
"
,
"revisionTime"
:
"2018-12-2
6T14:52:2
8Z"
"revisionTime"
:
"2018-12-2
8T02:29:3
8Z"
},
},
{
{
"checksumSHA1"
:
"skWGV4FNvD3vr+5olepaPPnylUw="
,
"checksumSHA1"
:
"skWGV4FNvD3vr+5olepaPPnylUw="
,
"path"
:
"github.com/pingcap/parser/auth"
,
"path"
:
"github.com/pingcap/parser/auth"
,
"revision"
:
"
60752e9154861ea1890cff3cdf84e75e67b02281
"
,
"revision"
:
"
a4bdcab31117b4b4cbfbdb792307e3332534950d
"
,
"revisionTime"
:
"2018-12-2
6T14:52:2
8Z"
"revisionTime"
:
"2018-12-2
8T02:29:3
8Z"
},
},
{
{
"checksumSHA1"
:
"t4UHo966WzU9Z0IJkyGHRp0loOk="
,
"checksumSHA1"
:
"t4UHo966WzU9Z0IJkyGHRp0loOk="
,
"path"
:
"github.com/pingcap/parser/charset"
,
"path"
:
"github.com/pingcap/parser/charset"
,
"revision"
:
"
60752e9154861ea1890cff3cdf84e75e67b02281
"
,
"revision"
:
"
a4bdcab31117b4b4cbfbdb792307e3332534950d
"
,
"revisionTime"
:
"2018-12-2
6T14:52:2
8Z"
"revisionTime"
:
"2018-12-2
8T02:29:3
8Z"
},
},
{
{
"checksumSHA1"
:
"SInoXbsRe0tnBwmatmtZYfSFbdk="
,
"checksumSHA1"
:
"SInoXbsRe0tnBwmatmtZYfSFbdk="
,
"path"
:
"github.com/pingcap/parser/format"
,
"path"
:
"github.com/pingcap/parser/format"
,
"revision"
:
"
60752e9154861ea1890cff3cdf84e75e67b02281
"
,
"revision"
:
"
a4bdcab31117b4b4cbfbdb792307e3332534950d
"
,
"revisionTime"
:
"2018-12-2
6T14:52:2
8Z"
"revisionTime"
:
"2018-12-2
8T02:29:3
8Z"
},
},
{
{
"checksumSHA1"
:
"
WZYTGDMnc1UfTdjdZoBbISsnpRY
="
,
"checksumSHA1"
:
"
fMXmawvMELfwCuO/vrNtkUjQN/0
="
,
"path"
:
"github.com/pingcap/parser/model"
,
"path"
:
"github.com/pingcap/parser/model"
,
"revision"
:
"
60752e9154861ea1890cff3cdf84e75e67b02281
"
,
"revision"
:
"
a4bdcab31117b4b4cbfbdb792307e3332534950d
"
,
"revisionTime"
:
"2018-12-2
6T14:52:2
8Z"
"revisionTime"
:
"2018-12-2
8T02:29:3
8Z"
},
},
{
{
"checksumSHA1"
:
"QBa9yiMDQNl2cLLwqlRoNTpCPNg="
,
"checksumSHA1"
:
"QBa9yiMDQNl2cLLwqlRoNTpCPNg="
,
"path"
:
"github.com/pingcap/parser/mysql"
,
"path"
:
"github.com/pingcap/parser/mysql"
,
"revision"
:
"
60752e9154861ea1890cff3cdf84e75e67b02281
"
,
"revision"
:
"
a4bdcab31117b4b4cbfbdb792307e3332534950d
"
,
"revisionTime"
:
"2018-12-2
6T14:52:2
8Z"
"revisionTime"
:
"2018-12-2
8T02:29:3
8Z"
},
},
{
{
"checksumSHA1"
:
"mxpiJJ3b08I0o0Sd2rJLYMwz7uw="
,
"checksumSHA1"
:
"mxpiJJ3b08I0o0Sd2rJLYMwz7uw="
,
"path"
:
"github.com/pingcap/parser/opcode"
,
"path"
:
"github.com/pingcap/parser/opcode"
,
"revision"
:
"
60752e9154861ea1890cff3cdf84e75e67b02281
"
,
"revision"
:
"
a4bdcab31117b4b4cbfbdb792307e3332534950d
"
,
"revisionTime"
:
"2018-12-2
6T14:52:2
8Z"
"revisionTime"
:
"2018-12-2
8T02:29:3
8Z"
},
},
{
{
"checksumSHA1"
:
"XvnUllvwMYd6HrMvMiKnn4cGN2M="
,
"checksumSHA1"
:
"XvnUllvwMYd6HrMvMiKnn4cGN2M="
,
"path"
:
"github.com/pingcap/parser/terror"
,
"path"
:
"github.com/pingcap/parser/terror"
,
"revision"
:
"
60752e9154861ea1890cff3cdf84e75e67b02281
"
,
"revision"
:
"
a4bdcab31117b4b4cbfbdb792307e3332534950d
"
,
"revisionTime"
:
"2018-12-2
6T14:52:2
8Z"
"revisionTime"
:
"2018-12-2
8T02:29:3
8Z"
},
},
{
{
"checksumSHA1"
:
"YoDiJ3sniNqxkP5X/BDkx6efteA="
,
"checksumSHA1"
:
"YoDiJ3sniNqxkP5X/BDkx6efteA="
,
"path"
:
"github.com/pingcap/parser/types"
,
"path"
:
"github.com/pingcap/parser/types"
,
"revision"
:
"
60752e9154861ea1890cff3cdf84e75e67b02281
"
,
"revision"
:
"
a4bdcab31117b4b4cbfbdb792307e3332534950d
"
,
"revisionTime"
:
"2018-12-2
6T14:52:2
8Z"
"revisionTime"
:
"2018-12-2
8T02:29:3
8Z"
},
},
{
{
"checksumSHA1"
:
"Uv9aqrZqzNFUgUferYPfNGUxOmM="
,
"checksumSHA1"
:
"Uv9aqrZqzNFUgUferYPfNGUxOmM="
,
"path"
:
"github.com/pingcap/tidb/sessionctx/stmtctx"
,
"path"
:
"github.com/pingcap/tidb/sessionctx/stmtctx"
,
"revision"
:
"
e45e6999cbd29fbd14cf8c93669b2e45907b4154
"
,
"revision"
:
"
71088815e7c5121e069d7ec10595d176a44b9bea
"
,
"revisionTime"
:
"2018-12-27T0
6:12:19
Z"
"revisionTime"
:
"2018-12-27T0
9:14:04
Z"
},
},
{
{
"checksumSHA1"
:
"kXyszfR2fQ6bHvuCCFlHRkt1mF0="
,
"checksumSHA1"
:
"kXyszfR2fQ6bHvuCCFlHRkt1mF0="
,
"path"
:
"github.com/pingcap/tidb/types"
,
"path"
:
"github.com/pingcap/tidb/types"
,
"revision"
:
"
e45e6999cbd29fbd14cf8c93669b2e45907b4154
"
,
"revision"
:
"
71088815e7c5121e069d7ec10595d176a44b9bea
"
,
"revisionTime"
:
"2018-12-27T0
6:12:19
Z"
"revisionTime"
:
"2018-12-27T0
9:14:04
Z"
},
},
{
{
"checksumSHA1"
:
"DWVD7+ygtT66IQ+cqXmMJ5OVqUk="
,
"checksumSHA1"
:
"DWVD7+ygtT66IQ+cqXmMJ5OVqUk="
,
"path"
:
"github.com/pingcap/tidb/types/json"
,
"path"
:
"github.com/pingcap/tidb/types/json"
,
"revision"
:
"
e45e6999cbd29fbd14cf8c93669b2e45907b4154
"
,
"revision"
:
"
71088815e7c5121e069d7ec10595d176a44b9bea
"
,
"revisionTime"
:
"2018-12-27T0
6:12:19
Z"
"revisionTime"
:
"2018-12-27T0
9:14:04
Z"
},
},
{
{
"checksumSHA1"
:
"6vi/eCZXqNTa5eAUpxDZet4LPlY="
,
"checksumSHA1"
:
"6vi/eCZXqNTa5eAUpxDZet4LPlY="
,
"path"
:
"github.com/pingcap/tidb/types/parser_driver"
,
"path"
:
"github.com/pingcap/tidb/types/parser_driver"
,
"revision"
:
"
e45e6999cbd29fbd14cf8c93669b2e45907b4154
"
,
"revision"
:
"
71088815e7c5121e069d7ec10595d176a44b9bea
"
,
"revisionTime"
:
"2018-12-27T0
6:12:19
Z"
"revisionTime"
:
"2018-12-27T0
9:14:04
Z"
},
},
{
{
"checksumSHA1"
:
"SS7twHZofFKr8w/pwIKmkp3u5qU="
,
"checksumSHA1"
:
"SS7twHZofFKr8w/pwIKmkp3u5qU="
,
"path"
:
"github.com/pingcap/tidb/util/execdetails"
,
"path"
:
"github.com/pingcap/tidb/util/execdetails"
,
"revision"
:
"
e45e6999cbd29fbd14cf8c93669b2e45907b4154
"
,
"revision"
:
"
71088815e7c5121e069d7ec10595d176a44b9bea
"
,
"revisionTime"
:
"2018-12-27T0
6:12:19
Z"
"revisionTime"
:
"2018-12-27T0
9:14:04
Z"
},
},
{
{
"checksumSHA1"
:
"nUC7zVoAMNR2a+z2iGqHoN2AkFE="
,
"checksumSHA1"
:
"nUC7zVoAMNR2a+z2iGqHoN2AkFE="
,
"path"
:
"github.com/pingcap/tidb/util/hack"
,
"path"
:
"github.com/pingcap/tidb/util/hack"
,
"revision"
:
"
e45e6999cbd29fbd14cf8c93669b2e45907b4154
"
,
"revision"
:
"
71088815e7c5121e069d7ec10595d176a44b9bea
"
,
"revisionTime"
:
"2018-12-27T0
6:12:19
Z"
"revisionTime"
:
"2018-12-27T0
9:14:04
Z"
},
},
{
{
"checksumSHA1"
:
"xSyepiuqsoaaeDch7cXeumvVHKM="
,
"checksumSHA1"
:
"xSyepiuqsoaaeDch7cXeumvVHKM="
,
"path"
:
"github.com/pingcap/tidb/util/memory"
,
"path"
:
"github.com/pingcap/tidb/util/memory"
,
"revision"
:
"
e45e6999cbd29fbd14cf8c93669b2e45907b4154
"
,
"revision"
:
"
71088815e7c5121e069d7ec10595d176a44b9bea
"
,
"revisionTime"
:
"2018-12-27T0
6:12:19
Z"
"revisionTime"
:
"2018-12-27T0
9:14:04
Z"
},
},
{
{
"checksumSHA1"
:
"SmYeIK/fIYXNu8IKxD6HOVQVTuU="
,
"checksumSHA1"
:
"SmYeIK/fIYXNu8IKxD6HOVQVTuU="
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录