Skip to content

Commit

Permalink
vendor daily update
Browse files Browse the repository at this point in the history
  1. update vendor
  2. `use db` can't be explain, it will print err log at explain.go
  • Loading branch information
martianzhang committed Jan 5, 2019
1 parent af21009 commit 442f414
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 59 deletions.
3 changes: 3 additions & 0 deletions database/explain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,9 @@ func (db *Connector) Explain(sql string, explainType int, formatType int) (exp *

// 执行EXPLAIN请求
exp.SQL = db.explainQuery(sql, explainType, formatType)
if exp.SQL == "" {
return exp, nil
}
res, err := db.Query(exp.SQL)
if err != nil {
return exp, err
Expand Down
64 changes: 61 additions & 3 deletions vendor/github.com/pingcap/parser/ast/dml.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 25 additions & 1 deletion vendor/github.com/pingcap/parser/ast/functions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

110 changes: 55 additions & 55 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,104 +113,104 @@
{
"checksumSHA1": "oPVvRBag6XbaB4dN38RkdejKr70=",
"path": "github.com/pingcap/parser",
"revision": "24cab7ea76283def175c657d7572bf4764fead4c",
"revisionTime": "2019-01-04T04:24:18Z"
"revision": "5f15dc90ca5964d59634063e29c22ff6c7d9e49e",
"revisionTime": "2019-01-05T06:04:45Z"
},
{
"checksumSHA1": "8hcQ9TZ4Uy3ucYasBUPUTA/Km34=",
"checksumSHA1": "+KVexpbQ1kxBZA/iUahnFkIUGsU=",
"path": "github.com/pingcap/parser/ast",
"revision": "24cab7ea76283def175c657d7572bf4764fead4c",
"revisionTime": "2019-01-04T04:24:18Z"
"revision": "5f15dc90ca5964d59634063e29c22ff6c7d9e49e",
"revisionTime": "2019-01-05T06:04:45Z"
},
{
"checksumSHA1": "skWGV4FNvD3vr+5olepaPPnylUw=",
"path": "github.com/pingcap/parser/auth",
"revision": "24cab7ea76283def175c657d7572bf4764fead4c",
"revisionTime": "2019-01-04T04:24:18Z"
"revision": "5f15dc90ca5964d59634063e29c22ff6c7d9e49e",
"revisionTime": "2019-01-05T06:04:45Z"
},
{
"checksumSHA1": "t4UHo966WzU9Z0IJkyGHRp0loOk=",
"path": "github.com/pingcap/parser/charset",
"revision": "24cab7ea76283def175c657d7572bf4764fead4c",
"revisionTime": "2019-01-04T04:24:18Z"
"revision": "5f15dc90ca5964d59634063e29c22ff6c7d9e49e",
"revisionTime": "2019-01-05T06:04:45Z"
},
{
"checksumSHA1": "SInoXbsRe0tnBwmatmtZYfSFbdk=",
"path": "github.com/pingcap/parser/format",
"revision": "24cab7ea76283def175c657d7572bf4764fead4c",
"revisionTime": "2019-01-04T04:24:18Z"
"revision": "5f15dc90ca5964d59634063e29c22ff6c7d9e49e",
"revisionTime": "2019-01-05T06:04:45Z"
},
{
"checksumSHA1": "ZADwr2/PcEd9VI3XF9OvN4HkJ+8=",
"path": "github.com/pingcap/parser/model",
"revision": "24cab7ea76283def175c657d7572bf4764fead4c",
"revisionTime": "2019-01-04T04:24:18Z"
"revision": "5f15dc90ca5964d59634063e29c22ff6c7d9e49e",
"revisionTime": "2019-01-05T06:04:45Z"
},
{
"checksumSHA1": "kkqyRzO7TCqnABxjJEo+JclJZLM=",
"path": "github.com/pingcap/parser/mysql",
"revision": "24cab7ea76283def175c657d7572bf4764fead4c",
"revisionTime": "2019-01-04T04:24:18Z"
"revision": "5f15dc90ca5964d59634063e29c22ff6c7d9e49e",
"revisionTime": "2019-01-05T06:04:45Z"
},
{
"checksumSHA1": "mxpiJJ3b08I0o0Sd2rJLYMwz7uw=",
"path": "github.com/pingcap/parser/opcode",
"revision": "24cab7ea76283def175c657d7572bf4764fead4c",
"revisionTime": "2019-01-04T04:24:18Z"
"revision": "5f15dc90ca5964d59634063e29c22ff6c7d9e49e",
"revisionTime": "2019-01-05T06:04:45Z"
},
{
"checksumSHA1": "XvnUllvwMYd6HrMvMiKnn4cGN2M=",
"path": "github.com/pingcap/parser/terror",
"revision": "24cab7ea76283def175c657d7572bf4764fead4c",
"revisionTime": "2019-01-04T04:24:18Z"
"revision": "5f15dc90ca5964d59634063e29c22ff6c7d9e49e",
"revisionTime": "2019-01-05T06:04:45Z"
},
{
"checksumSHA1": "CpuZhpMNeho4tIFPwY2GUDvuEfQ=",
"path": "github.com/pingcap/parser/types",
"revision": "24cab7ea76283def175c657d7572bf4764fead4c",
"revisionTime": "2019-01-04T04:24:18Z"
"revision": "5f15dc90ca5964d59634063e29c22ff6c7d9e49e",
"revisionTime": "2019-01-05T06:04:45Z"
},
{
"checksumSHA1": "MxoLdFWi8nwd0uqTJnYqw+JaDAY=",
"path": "github.com/pingcap/tidb/sessionctx/stmtctx",
"revision": "7ee6811d9777bc2ae281292bf2f6313abb64b5c3",
"revisionTime": "2019-01-04T07:15:18Z"
"revision": "081a2c5cccf4d82ca2ad33cdc9f2f21d3319e2d5",
"revisionTime": "2019-01-05T02:32:10Z"
},
{
"checksumSHA1": "wlD7aGqTJ5eBQYK0ub4b2Ick1j8=",
"path": "github.com/pingcap/tidb/types",
"revision": "7ee6811d9777bc2ae281292bf2f6313abb64b5c3",
"revisionTime": "2019-01-04T07:15:18Z"
"revision": "081a2c5cccf4d82ca2ad33cdc9f2f21d3319e2d5",
"revisionTime": "2019-01-05T02:32:10Z"
},
{
"checksumSHA1": "DWVD7+ygtT66IQ+cqXmMJ5OVqUk=",
"path": "github.com/pingcap/tidb/types/json",
"revision": "7ee6811d9777bc2ae281292bf2f6313abb64b5c3",
"revisionTime": "2019-01-04T07:15:18Z"
"revision": "081a2c5cccf4d82ca2ad33cdc9f2f21d3319e2d5",
"revisionTime": "2019-01-05T02:32:10Z"
},
{
"checksumSHA1": "6vi/eCZXqNTa5eAUpxDZet4LPlY=",
"path": "github.com/pingcap/tidb/types/parser_driver",
"revision": "7ee6811d9777bc2ae281292bf2f6313abb64b5c3",
"revisionTime": "2019-01-04T07:15:18Z"
"revision": "081a2c5cccf4d82ca2ad33cdc9f2f21d3319e2d5",
"revisionTime": "2019-01-05T02:32:10Z"
},
{
"checksumSHA1": "SS7twHZofFKr8w/pwIKmkp3u5qU=",
"path": "github.com/pingcap/tidb/util/execdetails",
"revision": "7ee6811d9777bc2ae281292bf2f6313abb64b5c3",
"revisionTime": "2019-01-04T07:15:18Z"
"revision": "081a2c5cccf4d82ca2ad33cdc9f2f21d3319e2d5",
"revisionTime": "2019-01-05T02:32:10Z"
},
{
"checksumSHA1": "nUC7zVoAMNR2a+z2iGqHoN2AkFE=",
"path": "github.com/pingcap/tidb/util/hack",
"revision": "7ee6811d9777bc2ae281292bf2f6313abb64b5c3",
"revisionTime": "2019-01-04T07:15:18Z"
"revision": "081a2c5cccf4d82ca2ad33cdc9f2f21d3319e2d5",
"revisionTime": "2019-01-05T02:32:10Z"
},
{
"checksumSHA1": "xSyepiuqsoaaeDch7cXeumvVHKM=",
"path": "github.com/pingcap/tidb/util/memory",
"revision": "7ee6811d9777bc2ae281292bf2f6313abb64b5c3",
"revisionTime": "2019-01-04T07:15:18Z"
"revision": "081a2c5cccf4d82ca2ad33cdc9f2f21d3319e2d5",
"revisionTime": "2019-01-05T02:32:10Z"
},
{
"checksumSHA1": "SmYeIK/fIYXNu8IKxD6HOVQVTuU=",
Expand Down Expand Up @@ -407,62 +407,62 @@
{
"checksumSHA1": "aKn1oKcY74N8TRLm3Ayt7Q4bbI4=",
"path": "vitess.io/vitess/go/bytes2",
"revision": "6cf46db00d35072b69e7dcbec207d99836da0419",
"revisionTime": "2019-01-03T03:49:25Z"
"revision": "ae79dd48f3157c96d083c890f670011cdebf0a2b",
"revisionTime": "2019-01-04T23:32:40Z"
},
{
"checksumSHA1": "JVCEN4UGRmg3TofIBdzZMZ3G0Ww=",
"path": "vitess.io/vitess/go/hack",
"revision": "6cf46db00d35072b69e7dcbec207d99836da0419",
"revisionTime": "2019-01-03T03:49:25Z"
"revision": "ae79dd48f3157c96d083c890f670011cdebf0a2b",
"revisionTime": "2019-01-04T23:32:40Z"
},
{
"checksumSHA1": "F5pcGq+2W1FHEjgktTdKOE6W8mk=",
"path": "vitess.io/vitess/go/sqltypes",
"revision": "6cf46db00d35072b69e7dcbec207d99836da0419",
"revisionTime": "2019-01-03T03:49:25Z"
"revision": "ae79dd48f3157c96d083c890f670011cdebf0a2b",
"revisionTime": "2019-01-04T23:32:40Z"
},
{
"checksumSHA1": "ntFIQYkBS51G6y+FEkjFW40+HOU=",
"path": "vitess.io/vitess/go/vt/log",
"revision": "6cf46db00d35072b69e7dcbec207d99836da0419",
"revisionTime": "2019-01-03T03:49:25Z"
"revision": "ae79dd48f3157c96d083c890f670011cdebf0a2b",
"revisionTime": "2019-01-04T23:32:40Z"
},
{
"checksumSHA1": "HHIcl3lpWkzLARkkNv94fVaObjo=",
"path": "vitess.io/vitess/go/vt/proto/query",
"revision": "6cf46db00d35072b69e7dcbec207d99836da0419",
"revisionTime": "2019-01-03T03:49:25Z"
"revision": "ae79dd48f3157c96d083c890f670011cdebf0a2b",
"revisionTime": "2019-01-04T23:32:40Z"
},
{
"checksumSHA1": "YLWTmL+rvz0htn0niRMrIUI6rKc=",
"path": "vitess.io/vitess/go/vt/proto/topodata",
"revision": "6cf46db00d35072b69e7dcbec207d99836da0419",
"revisionTime": "2019-01-03T03:49:25Z"
"revision": "ae79dd48f3157c96d083c890f670011cdebf0a2b",
"revisionTime": "2019-01-04T23:32:40Z"
},
{
"checksumSHA1": "tNNlcSFFnlOauS2hXnrz/zA/wfk=",
"path": "vitess.io/vitess/go/vt/proto/vtgate",
"revision": "6cf46db00d35072b69e7dcbec207d99836da0419",
"revisionTime": "2019-01-03T03:49:25Z"
"revision": "ae79dd48f3157c96d083c890f670011cdebf0a2b",
"revisionTime": "2019-01-04T23:32:40Z"
},
{
"checksumSHA1": "qz32abYdmm9NfKTc++K0l1EvXXM=",
"path": "vitess.io/vitess/go/vt/proto/vtrpc",
"revision": "6cf46db00d35072b69e7dcbec207d99836da0419",
"revisionTime": "2019-01-03T03:49:25Z"
"revision": "ae79dd48f3157c96d083c890f670011cdebf0a2b",
"revisionTime": "2019-01-04T23:32:40Z"
},
{
"checksumSHA1": "IDe+9Bn42lZVsuoYO/epdguiErk=",
"path": "vitess.io/vitess/go/vt/sqlparser",
"revision": "6cf46db00d35072b69e7dcbec207d99836da0419",
"revisionTime": "2019-01-03T03:49:25Z"
"revision": "ae79dd48f3157c96d083c890f670011cdebf0a2b",
"revisionTime": "2019-01-04T23:32:40Z"
},
{
"checksumSHA1": "Jx+gOh/kiBDSZxEIWHyYn9brjdo=",
"path": "vitess.io/vitess/go/vt/vterrors",
"revision": "6cf46db00d35072b69e7dcbec207d99836da0419",
"revisionTime": "2019-01-03T03:49:25Z"
"revision": "ae79dd48f3157c96d083c890f670011cdebf0a2b",
"revisionTime": "2019-01-04T23:32:40Z"
}
],
"rootPath": "github.com/XiaoMi/soar"
Expand Down

0 comments on commit 442f414

Please sign in to comment.