Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
imtbkcat committed Jul 2, 2019
1 parent a47e888 commit ba97073
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions ast/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2030,15 +2030,15 @@ func (n *TableOptimizerHint) Accept(v Visitor) (Node, bool) {
return v.Leave(n)
}

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

type BinaryLiteral interface {
ToString() string
}

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

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

// NewBitLiteral creates a types.BitLiteral value, it's provided by parser driver.
var NewBitLiteral func(string) (BinaryLiteral, error)
var NewBitLiteral func(string) (interface{}, error)
4 changes: 2 additions & 2 deletions parser.go

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

4 changes: 2 additions & 2 deletions parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -8908,12 +8908,12 @@ FieldTerminator:
| hexLit
{
h, _ := ast.NewHexLiteral($1.(string))
$$ = h.ToString()
$$ = (h.(ast.BinaryLiteral)).ToString()
}
| bitLit
{
b, _ := ast.NewBitLiteral($1.(string))
$$ = b.ToString()
$$ = (b.(ast.BinaryLiteral)).ToString()
}

Lines:
Expand Down

0 comments on commit ba97073

Please sign in to comment.