Skip to content

Commit

Permalink
add hexLit and binaryList support for LOAD DATA (#365)
Browse files Browse the repository at this point in the history
* support hex and bin for terminator

* add more tests

* add test for binary

* adddress comment

* add ast.BinaryLiteral

* go fmt project

* address comment

* fix parser

* update gomod
  • Loading branch information
Lingyu Song authored and kennytm committed Jul 3, 2019
1 parent f9dfedc commit 2900147
Show file tree
Hide file tree
Showing 6 changed files with 4,153 additions and 4,014 deletions.
4 changes: 4 additions & 0 deletions ast/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2030,6 +2030,10 @@ func (n *TableOptimizerHint) Accept(v Visitor) (Node, bool) {
return v.Leave(n)
}

type BinaryLiteral interface {
ToString() string
}

// NewDecimal creates a types.Decimal value, it's provided by parser driver.
var NewDecimal func(string) (interface{}, error)

Expand Down
4 changes: 2 additions & 2 deletions go.mod1
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ require (
github.com/cznic/y v0.0.0-20170802143616-045f81c6662a
github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8
github.com/pingcap/errors v0.11.4
github.com/pingcap/tidb v0.0.0-20190321025159-e8299209340c
github.com/pingcap/tipb v0.0.0-20190107072121-abbec73437b7
github.com/pingcap/tidb v0.0.0-20190703092821-755875aacb5a
github.com/pingcap/tipb v0.0.0-20190428032612-535e1abaa330
github.com/sirupsen/logrus v1.3.0
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2
)
Loading

0 comments on commit 2900147

Please sign in to comment.