Commit Graph

139 Commits

Author SHA1 Message Date
c8124a0595 ddl: Disable RENAME COLUMN for partitioning columns | tidb-test=pr/2054 (#40151)
close pingcap/tidb#40150
2022-12-29 09:18:16 +08:00
83d275cc53 ddl: Refine the error message to compatible with MySQL when drop a partition table partition key column (#38740)
close pingcap/tidb#38739
2022-12-27 18:24:16 +08:00
824ef608c7 *: support password expiration policy (#39035)
ref pingcap/tidb#9709, close pingcap/tidb#38936
2022-12-02 16:36:02 +08:00
40d1ddb364 *: support password reuse policy (#39162)
ref pingcap/tidb#38937
2022-12-02 09:58:01 +08:00
37bd052ee5 planner: rewrite count star to count not null column (#39197)
close pingcap/tidb#37165
2022-11-28 23:57:59 +08:00
09f6295f61 ddl: fix issue of foreign key name too long (#38855) 2022-11-03 19:54:02 +08:00
0e23da6e7c *: create a user using tidb_auth_token authentication (#38585)
ref pingcap/tidb#38504
2022-10-31 11:47:59 +08:00
9a8272dc71 ddl: add foreign key check when modify column (#37823)
close pingcap/tidb#37821
2022-09-15 19:10:59 +08:00
f80a42d2d6 ddl: check index is needed in foreign key when drop index (#37813)
close pingcap/tidb#37812
2022-09-15 14:44:59 +08:00
3f77284ee4 ddl: add foreign key check when execute drop/truncate table (#37773)
close pingcap/tidb#37772
2022-09-14 16:50:59 +08:00
1d482db4dd *: Support for tidb_sm3_password authentication (#36193)
close pingcap/tidb#36192
2022-09-08 12:00:57 +08:00
9036de3394 *: support create table with foreign key and maintain foreign key reference (#37148)
close pingcap/tidb#37147
2022-09-07 13:22:56 +08:00
7f4091d993 expression: set json to right type (#37054)
close pingcap/tidb#37339
2022-08-24 17:18:21 +08:00
2e16291b2d server: support deprecation of EOF packets (#34753)
close pingcap/tidb#32118
2022-08-05 15:34:07 +08:00
a6475a1397 server: Support flag 128 in execution of prepared statements (#36732)
close pingcap/tidb#36731
2022-08-04 17:48:06 +08:00
5b4a82dbf4 *: upgrade bazel timeout (#36776) 2022-08-02 11:10:05 +08:00
624171abcc *: decouple planner/core from ddl package (#36608) 2022-07-27 21:15:12 +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
9a2ed52119 server, sessionctx: support token-based authentication (#36152)
close pingcap/tidb#35913
2022-07-14 18:29:06 +08:00
2b4a4c6d7a *: support bazel (#33691)
close pingcap/tidb#34083
2022-06-07 15:22:30 +08:00
7342460e07 refactor(charset): remove unused charsets map (#35120)
close pingcap/tidb#35118
2022-06-02 14:28:27 +08:00
b7eeb41c31 parser: revert latin1 as an alias for utf8mb4 (#35025)
ref pingcap/tidb#34008
2022-05-30 22:04:26 +08:00
79938e695c dml: support for show count(*) warnings | errors (#34721)
close pingcap/tidb#25068
2022-05-23 15:50:46 +08:00
ede6f8cf16 *: Support modify table/column charset from latin1 to utf8/utf8mb4 (#34386)
ref pingcap/tidb#34008
2022-05-10 13:00:35 +08:00
1bf64c60f4 *: Refactor FieldType structure (#33569)
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
4d3a3c259a server: use max_allowed_packet to limit the packet size. (#33651)
close pingcap/tidb#31422
2022-04-18 11:24:03 +08:00
3ddd95906e parser/mysql, privilege/privileges: fix trigger privilege (#32893)
close pingcap/tidb#32891
2022-03-23 11:52:33 +08:00
1d20bbfeb4 *: Annotations to fix gosec warnings of CWE-798 (#31311)
ref pingcap/tidb#31310
2022-01-11 00:21:42 +08:00
df58e6c36c execution: refine precision of cast as decimal in agg func (#30805) 2021-12-23 16:53:47 +08:00
b4df7ca4dc test: make all the tests run in serial (#30692) 2021-12-14 18:06:36 +08:00
5f340b88c9 parser: format error message during parsing when meet a big value. (#28791) 2021-11-18 00:51:47 +08:00
ec7a638e33 executor: Fix authplugin handling with alter/create (#28468) 2021-11-02 01:10:51 +08:00
8d9647dee5 privileges: fix create temporary tables privilege (#29279) 2021-11-01 16:46:51 +08:00
11b61738f3 parser: migrate test-infra to testify (#29191) 2021-10-28 12:30:49 +08:00
c1ec51e049 privilege: add Event and Routine privilege on db level (#28690) 2021-10-13 14:07:27 +08:00
6553404bb2 *: fix regression from FLUSH PRIVILEGES fix (#28736) 2021-10-13 11:19:26 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
77e63887f2 [parser] mysql: add references priv in AllColumnPrivs (#1358) 2021-10-09 14:53:23 +08:00
a1ff6f89c9 [parser] Create TMP Tables issue fix (#1359) 2021-10-09 14:53:23 +08:00
a68e007548 [parser] mysql: fix MaxDurationWidthWithFsp (#1345)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2021-10-09 14:53:23 +08:00
726409a242 [parser] Add 'auth_socket' (#1323) 2021-10-09 14:53:23 +08:00
d1694fad47 [parser] Grant lock tables issue fix (#1316) 2021-10-09 14:53:23 +08:00
70855c9d0e [parser] Added ReferencesPriv to DB and Table level, see tidb issue 26703 (#1304) 2021-10-09 14:53:23 +08:00
6790f201fc [parser] add drop column with index flag (#1286)
Signed-off-by: ailinkid <314806019@qq.com>
2021-10-09 14:53:23 +08:00
8d23ad21c9 [parser] auth: add the caching sha2 algorithm for authentication (#1232)
This allows validating passwords against the `authentication_string`
data that MySQL stores for caching_sha2 passwords.

Related:
- https://github.com/pingcap/tidb/issues/9411
2021-10-09 14:53:23 +08:00
397683047e [parser] parser: Fix tidb issue 24439 Inconsistent error with MySQL for GRANT CREATE USER ON <specific db>.* (#1224)
* add StaticGlobalOnlyPrivs

* fix
2021-10-09 14:53:23 +08:00
67b2a63ac9 [parser] Add EnumSetAsIntFlag flag to control enum behavior. (#1165)
* add enumset as int flag

* update evaltype

* add has function

* Update mysql/type.go

Co-authored-by: tangenta <tangenta@126.com>

Co-authored-by: tangenta <tangenta@126.com>
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
5f6739c14e [parser] mysql: modify TypeNewDecimal length in defaultLengthAndDecimalForCast (#1202) 2021-10-09 14:53:23 +08:00