Commit Graph

26 Commits

Author SHA1 Message Date
a2cfa5379b *: fix a bug found by jdbc_test (#37492)
close pingcap/tidb#37493
2022-08-31 14:14:24 +08:00
5b4a82dbf4 *: upgrade bazel timeout (#36776) 2022-08-02 11:10:05 +08:00
bf743a6ca0 *: enable flaky test for all test (#36385)
close pingcap/tidb#36404
2022-07-22 15:35:09 +08:00
911e7cc360 *: enable revive (#35970)
ref pingcap/tidb#35345
2022-07-15 16:03:06 +08:00
180fc97dad error code: check the value when doing type convert (#36014)
close pingcap/tidb#35963
2022-07-08 00:19:02 +08:00
2b4a4c6d7a *: support bazel (#33691)
close pingcap/tidb#34083
2022-06-07 15:22:30 +08:00
1e5e86920d test: merge serial tests in bindinfo, expression, parser and statistics (#30749) 2021-12-16 18:40:37 +08:00
11b61738f3 parser: migrate test-infra to testify (#29191) 2021-10-28 12:30:49 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
83d66f517c [parser] terror: provide a RegisterFinish API (#1352) 2021-10-09 14:53:23 +08:00
a0180960b8 [parser] terror: remove dead code which may cause data race (#1096)
* terror: remove dead code

* terror: fix potential data race
2021-10-09 14:53:23 +08:00
d22bd1e23d [parser] Update the errors dependence to the latest version (#1079) 2021-10-09 14:53:23 +08:00
e3daabacc0 [parser] *: redact arguments for Error (#1051) 2021-10-09 14:53:23 +08:00
ed60a224fc [parser] using standard error code to replace terror (#982) 2021-10-09 14:53:23 +08:00
e97111f91e [parser] terror: add stack trace in terror log (#989)
* terror: add stack trace in terror log

* use zap.stack
2021-10-09 14:53:23 +08:00
24b21ed295 [parser] terror: add terror api to support add and product error workaround automaticly (#930)
* add error code add workaround api

* add description

* add description

* Update terror/terror.go

Co-authored-by: kennytm <kennytm@gmail.com>

* address comment

* address comment

* move errCodeMap into New

* address commney

* fix fmt

Co-authored-by: kennytm <kennytm@gmail.com>
Co-authored-by: lysu <sulifx@gmail.com>
Co-authored-by: bb7133 <bb7133@gmail.com>
2021-10-09 14:53:23 +08:00
2131dae117 [parser] terror: print the stack in terror.Log() (#803)
* terror: print the stack in terror.Log()

In TiDB, terror.Log(err) is called when we expect the error to be nil
and get rid of the annoying golint check.
Sometimes the error is not nil as expected, so it's better to print the
stack to find why

* go fmt

* address comment

* address comment
2021-10-09 14:53:23 +08:00
214dd44fab [parser] support register new terror (#734) 2021-10-09 14:53:23 +08:00
00ada7f542 [parser] terror: replace sirupsen/logrus by pingcap/log (#693)
* terror: replace sirupsen/logrus by pingcap/log

also fixed test failure on Windows

* circle.yml: restrict test parallelism in integration tests

also, stop verifying parser.go and code format in the integration tests...
those steps are redundant.

* codecov: add codecov.yml, based on pingcap/tidb#9618

Co-authored-by: tiancaiamao <tiancaiamao@gmail.com>
2021-10-09 14:53:23 +08:00
989870f109 [parser] *: remove testleak (#676) 2021-10-09 14:53:23 +08:00
17d58e390f [parser] add error class util (#628) 2021-10-09 14:53:23 +08:00
92ba8bb89b [parser] *: support parsing all PARTITION BY syntax (#345) 2021-10-09 14:53:23 +08:00
bfe813fcb9 [parser] terror: enhance terror FastGen to gen nostack error (#326) 2021-10-09 14:53:23 +08:00
7c13429c34 [parser] *: Support ENGINE TokuDB and it's ROW_FORMAT (#222) 2021-10-09 14:53:23 +08:00
5b5196d5c2 [parser] mysql,terror: add plugin error msg (#173) 2021-10-09 14:53:23 +08:00
c270f55405 [parser] *: move github.com/pingcap/tidb/parser here (#1) 2021-10-09 14:53:23 +08:00