073ab9b6a3
*: refactor RestrictedSQLExecutor ( #11904 )
2019-08-28 19:17:19 +08:00
9f01c7b497
ddl: handle index key type in CreateIndex
2019-08-16 00:00:29 +08:00
388ce88743
ddl: refine ddl error when do ddl error cause by infoschema is changed ( #11308 )
2019-07-23 16:18:48 +08:00
c8794803b5
*: add admin cleanup table lock syntax support ( #10423 )
2019-07-10 12:54:09 +08:00
d244723a5e
executor: remove unused structure RecordBatch ( #10891 )
2019-06-26 15:26:16 +08:00
a935d93990
*: support IF EXISTS/IF NOT EXISTS for some DDLs ( #10723 )
2019-06-24 19:46:26 +08:00
c8d1ff7ca6
*: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' ( #10866 )
2019-06-21 19:13:31 +08:00
612936bbd4
*: Support LOCK/UNLOCK TABLES feature ( #10343 )
2019-06-18 15:38:04 +08:00
5c21fa4b43
ddl: implement ALTER DATABASE to alter charset/collation ( #10393 )
2019-05-15 17:32:21 +08:00
8c118cecc2
*: clean code for restore table ( #9090 )
2019-04-08 15:21:37 +08:00
e9653675dd
*: remove errors.Trace in main handle path ( #10033 )
2019-04-04 14:27:15 +08:00
f738ba24ad
executor: replace logger with zap logger ( #9521 )
2019-03-14 15:14:38 +08:00
365264cd21
ddl: add restore deleted table ( #7937 )
2019-01-16 15:37:33 +08:00
00c4ff4fa9
*: refactor Executor.Next() to receive RecordBatch ( #8994 )
2019-01-14 15:04:36 +08:00
e646276f4b
planner,executor: basic support for DROP_VIEW ( #8758 )
2019-01-04 10:53:02 +08:00
ef7082da1c
ddl, executor: fix rename table compatibility ( #8709 )
2018-12-22 22:19:41 +08:00
a7907ede7a
*: remove fail field from TxnState ( #8712 )
...
Originally, `fail` is added to simplify error handling, avoiding large changes on
the Txn() interface API. But it turns out that `fail` becomes the root of many bugs.
So this commit remove the `fail` and make an API refactory.
2018-12-20 16:36:12 +08:00
4e8c424718
*: basic support for CREATE_VIEW ( #8571 )
2018-12-18 20:17:27 +08:00
93acd10f53
*: add context.Context to NewTxn(), tiny refactor ( #8530 )
2018-12-06 17:45:16 +08:00
c137cada68
*: change golang.org/x/net/context to standard context ( #8579 )
2018-12-05 13:54:00 +08:00
3742a0d602
*: Txn() function signature refactor and remove ActivePendingTxn() ( #8327 )
...
* change Txn() function signature to Txn(active bool)
* ActivePendingTxn() is not used any more because Txn() does the work
* change executor builder getStartTS() uint64 to getStartTS() (uint64, error)
2018-11-16 11:10:39 +08:00
32b1dbd8d5
*: rename "github.com/pkg/errors" to "github.com/pingcap/errors" ( #8136 )
...
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
38274c39c3
*: fix the issue of executing DDL after executing SQL failure in txn ( #8044 )
...
* ddl, executor: fix the issue of executing DDL after executing SQL failure in txn
2018-10-25 15:52:13 +08:00
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00
55af7e1472
executor: forbid user to drop important system table ( #7471 )
2018-08-29 23:40:53 +08:00
5404e2eaae
ddl: add admin check before drop table using building flag. ( #7343 )
2018-08-14 21:44:57 +08:00
e28a81813c
*: check the schema-validity when the DDL fails ( #6797 )
2018-07-09 17:35:04 +08:00
533fac12b8
*: support create table with range type table partition. ( #6251 )
2018-04-12 21:56:27 +08:00
ccf6da1a46
*: rename NextChunk to Next ( #6214 )
2018-04-03 20:00:30 +08:00
ab47fc387f
executor: remove Next for DDLExec ( #6013 )
2018-03-12 14:58:19 +08:00
e1121814d2
*: don't import golang.org/x/net/context as goctx alias ( #5895 )
...
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
47cbc0bfce
*: remove varsutil package, make Systems a private member of SessionVars ( #5544 )
2018-01-25 01:43:07 -06:00
e9c6cc6154
executor: support Chunk for DDLExec ( #5417 )
2017-12-15 20:40:58 +08:00
fb610e6429
*: change executor Next() interface to Next(goctx.Context) ( #5223 )
2017-11-26 21:17:33 -06:00
02f6bb27c7
*: remove goCtx from session struct ( #5174 )
...
1. go context should not be stored
2. change Executor interface to Open(goctx.Context)
3. many other changes forced by this refactor
2017-11-22 02:17:38 -06:00
f828016e9f
*: move sessionctx/domainctx.go to domain package ( #5168 )
2017-11-22 13:41:58 +08:00
cd5c665c8c
executor: use baseExecutor for all Executors ( #5087 )
...
Makes it easy to add new method on Executor interface.
2017-11-13 21:06:31 +08:00
62433663e5
util/types: change types path ( #5007 )
...
* util/types: change types path
2017-11-04 10:37:14 -05:00
f5fd467f46
*: change terror.ErrorEqual to Error.Equal, which is more effetive ( #4217 )
2017-08-17 20:06:48 +08:00
c7c248eb91
executor: change struct row to []types.Datum ( #4072 )
2017-08-09 18:37:57 +08:00
e94996addf
*: add parser support for multiple tables renaming ( #3892 )
2017-07-27 20:01:24 +08:00
a19ad3f480
ddl: support create index with type and comment ( #3814 )
2017-07-20 19:01:14 +08:00
62450b9024
Use etcd to speed up DDL process
...
Add the mock owner-manager and schema-syncer and enable using etcd to speed up DDL process by default.
2017-06-04 10:00:41 +08:00
ad52a2462c
executor: add open inteferce for Executor. ( #3221 )
2017-05-09 21:13:22 +08:00
eba4e7138b
privilege: clean up some old code ( #3005 )
2017-04-06 22:43:46 +08:00
b9deb5e7aa
privilege: rename interface name from Checker to Manager ( #2969 )
2017-03-31 10:55:38 +08:00
61868f44dc
*: Support the statement of "create table ... like" ( #2707 )
2017-02-22 23:57:04 +08:00
7965666bce
executor: ajust some code. ( #2574 )
2017-01-30 09:45:50 +08:00