Commit Graph

27 Commits

Author SHA1 Message Date
1624123b84 *: fix time zone problems encountered when changing the other type columns to timestamp type columns (#31843)
close pingcap/tidb#29585
2022-02-21 23:11:42 +08:00
e50e03c92c parser, ddl: update the DDL job's Location structure (#31199)
close pingcap/tidb#31212
2022-01-03 14:53:51 +08:00
b4df7ca4dc test: make all the tests run in serial (#30692) 2021-12-14 18:06:36 +08:00
93e2c12346 *: Rename some names of placement ddl operation (#30622) 2021-12-11 00:41:57 +08:00
6898975a7d parser: fix missing charset and collation of handle column (#30320) 2021-12-02 17:05:54 +08:00
7746b6b70a test: fix incorrect regexp pattern during migrating test (#30080) 2021-12-02 05:51:53 +08:00
a90c98816e ddl: fix none info of alter table placement (#29929) 2021-11-24 16:53:53 +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
444f2c51eb [parser] parser: move policyinfo test from tidb to parser (#1330) 2021-10-09 14:53:23 +08:00
c298f32dd3 [parser] ddl: admin show ddl jobs output confusing with multiple jobs (#1210)
* change "none" 2 "queueing"

Signed-off-by: lihaowei <haoweili35@gmail.com>

* 4 review

Signed-off-by: lihaowei <haoweili35@gmail.com>

* restore origin word

* *: change none 2 queueing
2021-10-09 14:53:23 +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
8cd0659690 [parser] set right not null flag when newing extra PK (#1189)
* set right not null flag when newing extra PK

* add test

* fmt

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-10-09 14:53:23 +08:00
0ab86feca6 [parser] add ActionType: ActionDropIndexes (#1186) 2021-10-09 14:53:23 +08:00
bba8f9579c [parser] model: Add StateGlobalTxnWriteOnly (#1104) 2021-10-09 14:53:23 +08:00
61d4863dab [parser] model: add functionality to check if a base table (#1080) 2021-10-09 14:53:23 +08:00
ebb56dd2c8 [parser] model: fix null origin default value for bit column (#983) 2021-10-09 14:53:23 +08:00
b3c477a7c0 [parser] model: add OriginDefaultValueBit field to ColumnInfo (#904)
* model: add OriginDefaultValueBit field for ColumnInfo

* add test for column default value
2021-10-09 14:53:23 +08:00
79eff12f73 [parser] add new action ActionDropColumns (#786) 2021-10-09 14:53:23 +08:00
e7a686be57 [parser] Add new ddl action ActionAddColumns (#784) 2021-10-09 14:53:23 +08:00
12683245ad [parser] parser: remove useless IndexToProto,ColumnToProto,ColumnsToProto function (#762) 2021-10-09 14:53:23 +08:00
126233c2b1 [parser] model: do not rewrite collation id as default for tipb. (#752) 2021-10-09 14:53:23 +08:00
b5701d9165 [parser] parser : Add model & errcode & errname for supporting sequence. (#691) 2021-10-09 14:53:23 +08:00
194335f65f [parser] model: add hidden to ColumnInfo (#621)
* add hidden

* make codecov happy

* support extended

* clean code

* address comment

* tweak

* address comment
2021-10-09 14:53:23 +08:00
9d0dae0e58 [parser] parser: add nowait keyword, add for update no wait grammar, and related error… (#582) 2021-10-09 14:53:23 +08:00
78d1b7f21b [parser] parser: add support for ALTER DATABASE syntax (#318) 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