Commit Graph

8 Commits

Author SHA1 Message Date
eb4bc5dc89 parser: update cznic/parser&y to new 1.0.2/1.0.1 (#29846) 2021-11-23 12:07:51 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
xhe
bc860cdd5e [parser] *: fix static check report (#1195)
* ast: base.go

Signed-off-by: xhe <xw897002528@gmail.com>

* ast: expressions.go

Signed-off-by: xhe <xw897002528@gmail.com>

* ast: misc_test.go

Signed-off-by: xhe <xw897002528@gmail.com>

* *: digester.go

Signed-off-by: xhe <xw897002528@gmail.com>

* goyacc: format_yacc.go

Signed-off-by: xhe <xw897002528@gmail.com>

* *: lexer_test.go

Signed-off-by: xhe <xw897002528@gmail.com>

* *: misc.go

Signed-off-by: xhe <xw897002528@gmail.com>

* model: model.go

Signed-off-by: xhe <xw897002528@gmail.com>

* model: model_test.go

Signed-off-by: xhe <xw897002528@gmail.com>

* *: parser_test.go

Signed-off-by: xhe <xw897002528@gmail.com>

* test_driver: test_driver_datum.go

Signed-off-by: xhe <xw897002528@gmail.com>

* test_driver: test_driver_mydecimal.go

Signed-off-by: xhe <xw897002528@gmail.com>

* ast: ddl.go, bugfix

Signed-off-by: xhe <xw897002528@gmail.com>

* mysql: errcode.go

charset/charset.go is passing errcode to NewStd, which requires int. But
here codes are uint16. To get rid of the error, uint16 is removed.

Signed-off-by: xhe <xw897002528@gmail.com>

* model: better test

Signed-off-by: xhe <xw897002528@gmail.com>

* *: fix timezone

Signed-off-by: xhe <xw897002528@gmail.com>

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-10-09 14:53:23 +08:00
67c73b4af9 [parser] restore: make restore sql contains charset information even default charset (#1012) 2021-10-09 14:53:23 +08:00
8b4d3d968d [parser] fix: add "UNDERSCORE_CHARSET hexLit/bitLit" in Literal (#926)
Signed-off-by: wangggong <793160615@qq.com>

Co-authored-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn>
2021-10-09 14:53:23 +08:00
b255e058e5 [parser] *: set charset and collate for string literals correctly (#761)
* done

* address comment

* fix

* revert
2021-10-09 14:53:23 +08:00
f799e5c41a [parser] remove digit seperator (#683) 2021-10-09 14:53:23 +08:00
b9268c63bc [parser] remove dependency on TiDB (#679) 2021-10-09 14:53:23 +08:00