Skip to content

Commit

Permalink
parser: support cast as double (pingcap#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
wshwsh12 authored and zz-jason committed Jul 26, 2019
1 parent 789ebcd commit db60bb6
Show file tree
Hide file tree
Showing 4 changed files with 2,717 additions and 2,694 deletions.
1 change: 1 addition & 0 deletions mysql/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ var defaultLengthAndDecimalForCast = map[byte]lengthAndDecimal{
TypeNewDecimal: {11, 0},
TypeDuration: {10, 0},
TypeLonglong: {22, 0},
TypeDouble: {22, -1},
TypeJSON: {4194304, 0}, // Flen differs.
}

Expand Down
Loading

0 comments on commit db60bb6

Please sign in to comment.