Skip to content

Commit

Permalink
[parser] parser: return parser warning of ErrWarnDeprecatedIntegerDis…
Browse files Browse the repository at this point in the history
…playWidth directly (pingcap#980)

* ???

Signed-off-by: AilinKid <314806019@qq.com>

* Update parser.y

Co-authored-by: Lynn <zimu_xia@126.com>

* .

Signed-off-by: AilinKid <314806019@qq.com>

Co-authored-by: Lynn <zimu_xia@126.com>
Co-authored-by: kennytm <kennytm@gmail.com>
  • Loading branch information
3 people authored and ti-chi-bot committed Oct 9, 2021
1 parent 96f79a6 commit 65f09c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parser/parser.go

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

2 changes: 1 addition & 1 deletion parser/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -9850,7 +9850,7 @@ NumericType:
x := types.NewFieldType($1.(byte))
x.Flen = $2.(int)
if $2.(int) != types.UnspecifiedLength && types.TiDBStrictIntegerDisplayWidth {
yylex.AppendError(yylex.Errorf("Integer display width is deprecated and will be removed in a future release."))
yylex.AppendError(ErrWarnDeprecatedIntegerDisplayWidth)
parser.lastErrorAsWarn()
}
for _, o := range $3.([]*ast.TypeOpt) {
Expand Down

0 comments on commit 65f09c7

Please sign in to comment.