Commit Graph

110 Commits

Author SHA1 Message Date
2e1cff73f3 *: add ExecRestrictedSQL() func for RestrictedSQLExecutor interface (#31618)
ref pingcap/tidb#30918
2022-01-24 21:30:11 +08:00
c589ee5471 *: remove direct placement from models (#31816)
close pingcap/tidb#31427
2022-01-20 00:47:45 +08:00
f637fedac3 *: flashback/recover a table will clear its placement settings (#31670)
close pingcap/tidb#31668
2022-01-14 11:07:42 +08:00
5cd37f0008 session: fix data race in ParseWithParamsInternal (#31058)
close pingcap/tidb#30918
2022-01-06 21:02:37 +08:00
23c71f1a3b execute: don't transform charset in internal sql (#30843)
close pingcap/tidb#30789
2021-12-20 17:15:46 +08:00
1cf2a6da7e ddl: add helper function to set and query TiFlash's sync status (#30473) 2021-12-17 15:06:35 +08:00
ad740a694a *: placement policy ref will be converted to direct options when recover or flashback table (#30705) 2021-12-16 20:38:36 +08:00
4063e9c2e6 ddl: add support create or replace placement policy (#29865) 2021-11-18 14:17:47 +08:00
dcbfda914a ddl, executor: add warning log for lock/unlock tables (#29301) 2021-11-04 14:23:01 +08:00
4879be763b infoschema: fix inserting into a temporary table panics after the database is dropped (#29263) 2021-11-01 14:40:51 +08:00
466e826a7e executor: Use charset and collation from server vars for new schemas (#27216) 2021-10-19 22:22:42 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
b8d85beb0d ddl: add schema placement rules (#27969) 2021-09-23 06:52:46 +08:00
d7bb71bc1f ddl, meta: refactor auto IDs metadata interface (#27721) 2021-09-10 13:56:39 +08:00
04684e6e58 ddl: support recover/flashback table for label rules (#27073) 2021-09-07 15:40:58 +08:00
8125b0a3f3 *: Introduce TemporaryTableDDL to provide unified APIs for temporary table ddl operations (#27776) 2021-09-06 11:24:57 +08:00
6805e344af ddl: support ALTER PLACEMENT POLICY ... (#27733) 2021-09-05 19:46:56 +08:00
8ba11a66c3 ddl: support create and drop placement policy (#27574) 2021-08-30 11:36:12 +08:00
fdb72436c4 ddl: forbidden flashback/recover local temprorary table (#27323) 2021-08-20 10:38:01 +08:00
d4ec0233c8 ddl: fix DROP [GLOBAL] TEMPORARY TABLE IF EXISTS returns error when table not exist (#27287) 2021-08-17 21:53:59 +08:00
462c9dc5ca *: Add temp_table_size support for local temporary table (#27205) 2021-08-16 22:19:59 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
ce60af56ea ddl: Create temporary table like tbl_xx (#26113) 2021-08-12 17:25:17 +08:00
cc64519feb ddl: forbide some ddl operations for local temporary table (#26643) 2021-08-04 11:57:06 +08:00
9e98025f1a ddl: truncate local temporary table (#26466) 2021-08-03 21:41:07 +08:00
443e10066a ddl: make 'drop local temporary table' atomic (#26464) 2021-08-03 11:01:06 +08:00
99c4bc1fd3 ddl: show create table for a local temporary table (#26104) 2021-07-30 12:07:04 +08:00
dc8d0fd3cd ddl: Drop a local temporary table (#26063) 2021-07-20 19:13:34 +08:00
2b192e3149 topsql: refine collect information for DDL and internal SQL (#26047) 2021-07-15 16:13:36 +08:00
xhe
e04181b351 executor: forbid read from stale query result (#25954) 2021-07-13 16:49:32 +08:00
118671d990 *: move initial of membuff for temporary table to when table create (#26131) 2021-07-13 11:47:31 +08:00
c043d6627e *: Support create local temporary table if not exist (#25983) 2021-07-07 10:37:29 +08:00
de3c30b62c *: support create a local temporary table (#25851) 2021-07-05 11:55:27 +08:00
9321489621 ddl, executor: fix test race in terror (#25405) 2021-06-15 13:16:36 +08:00
5fd39d1ed0 ddl: forbid recover/flashback temporary tables (#24518) 2021-05-13 12:09:39 +08:00
89c0e6c91a ddl: add check table compatibility for temporary table (#24501) 2021-05-12 21:49:40 +08:00
xhe
9e13287d9d *: remove SchemaVersion in TransactionContext (#24236) 2021-05-11 10:31:39 +08:00
6084a6a5ff variable: change SetSessionSystemVar to accept string (#24247) 2021-04-26 11:47:55 +08:00
b226130926 session: fix linearizability for non-autocommit async-commit txn (#22879)
* fix linearizability for non-autocommit async-commit txntxn

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* add IsExplicit flag

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* set missing cases

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* remove redundant assignment

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* revert go sum change

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* fmt

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

* clarify comment

Signed-off-by: Yilin Chen <sticnarf@gmail.com>

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-02-24 13:32:48 +08:00
xhe
4172f473da *: adapt new api for the executor package (#22644)
Signed-off-by: xhe <xw897002528@gmail.com>
2021-02-04 17:32:15 +08:00
72794461eb *: support read only lock (#21100)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-11-25 10:06:54 +08:00
91db54ef8e ddl: Support multiple table rename (#19962) 2020-10-28 11:36:03 +08:00
79711ad6b8 ddl: support alter sequence (#20405) 2020-10-14 17:06:11 +08:00
3cd5260773 ddl: collect actionTypes for schema change (#18195)
* record action types in schema change history

* change comments

* remove comment

* refactor, remove some params and return values

* change value to pointer, remove useless comments

* refactor comments

* change return value

* refactor

* remove all info

* fix action type append

* update comment

Co-authored-by: Lynn <zimu_xia@126.com>
2020-07-08 11:41:09 +08:00
c13e4ab1be executor: check gc safe time first when iterate the history ddl jobs (#18380) 2020-07-06 17:13:33 +08:00
389561922e executor: optimize the get snapshot table meta for tiflash/replica HTTP API (#17969)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-06-12 16:35:19 +08:00
e053ce02ab *: Fix HTTP api get TiFlash replica failed cause by concurrent DDL. (#17872) 2020-06-10 14:27:12 +08:00
5a0787dfa9 executor: fix flashback table faild in uppercase database name (#17093) 2020-05-13 14:55:57 +08:00
90bfe841ae server: add drop/truncate table tiflash replica info in /tiflash/replica http api (#15699) 2020-04-24 16:00:48 +08:00
dda190a830 ddl: fix repeatedly recover table error (#16116) 2020-04-08 11:03:31 +08:00