Commit Graph

52 Commits

Author SHA1 Message Date
5c65128632 ddl: make the leak test stable (#9139) 2019-01-23 13:01:55 +08:00
f522de2e8f ddl: support "or replace" option when create view (#8856) 2019-01-16 19:54:22 +08:00
e06c87d3c1 add an option for AddRecord and Create (#8884) 2019-01-02 11:30:53 +08:00
7056bb0d32 executor, session: refine insert unsigned bigint autoIncreID (#8181) 2018-12-18 23:01:10 +08:00
4e8c424718 *: basic support for CREATE_VIEW (#8571) 2018-12-18 20:17:27 +08:00
db2127a0dd ddl: split tests to speed up tests (#8612)
* ddl: add the db_partition_test
2018-12-13 15:06:04 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +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
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
7de583383c ddl: make testleak be more stable. (#6224) 2018-04-04 20:33:48 +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
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
bd5309437e ddl, model: clean up (#5583)
* ddl: rename updateTableInfo to updateVerAndTblInfo and add finish function
2018-01-15 13:16:01 +08:00
cbceac701d *:fix the bug about auto-increment key after renaming a table from old DB to the another DB (#5248) 2017-11-29 15:31:16 +08:00
14ed94132c executor: fix issue #5132, update handle id with some other unique keys report Duplicate keys. (#5138) 2017-11-20 11:06:28 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
030b3628d5 *: Remove the check of initialized auto ID (#4971) 2017-11-02 12:24:19 +08:00
98b2f3b0aa ddl: remove reorgTableDeleteLimit (#4898) 2017-10-26 15:29:28 +08:00
1eebb87156 ddl: remove backgroud worker, use delete-range to speed up something. (#3993) 2017-08-09 16:59:25 +08:00
5943198358 *: Add the two states test (#3804)
* ddl: add different state tests

* ddl: update

* ddl: clean up

* ddl: add a comment

* ddl: make more readable

* ddl: add a comment

* ddl: add the error check

* ddl: address comments
2017-07-26 00:24:56 +08:00
2518f8548a *: Add the arguments of ctx and etcdCli to the NewDDL interface (#3302) 2017-05-22 16:11:05 +08:00
fcc34b7ba7 ddl: correct comments mistake. (#3119) 2017-04-25 11:53:15 +08:00
fee2ed1849 ddl: Make verification background job more stable (#2683) 2017-02-20 22:43:11 +08:00
19af8d720f ddl: Add the function of close (#2562)
add the function of close, use Stop instead of close and add log.
2017-01-26 13:23:27 +08:00
ac10a37ee3 *: support alter table rename table (#2503) 2017-01-22 12:39:54 +08:00
d3f0612263 ddl: avoid assert in hook function. (#2479) 2017-01-16 16:38:29 +08:00
6bc6f7e98b *: Add the field of history information in job structure (#2046) 2017-01-05 16:34:39 +08:00
64484a4257 *: refactor context.Context (#2298)
Make transaction life cycle under control, prepare for correctly handle schema out of date error.
The old `GetTxn(forceNew boll)` is replaced by `Txn` and `NewTxn`,
`CommitTxn` and `RollbackTxn` is removed.
2016-12-23 13:02:41 +08:00
99b3465c1e ddl: allocate column ID and index ID in TableInfo. (#2205) 2016-12-09 12:31:27 +08:00
3b491f11bc ddl: Update error information and add tests (#1941) 2016-11-04 10:45:53 +08:00
915033e7a9 ddl: Record the start key of the batch job in delete keys (#1888) 2016-10-31 20:11:49 +08:00
3f2f6306bc ddl: remove useless test and adjust test position (#1891) 2016-10-30 22:53:46 +08:00
3f5488a55b ddl: increase reorg delete limit. (#1882) 2016-10-28 10:23:05 +08:00
b80ba788ca ddl: Add dbInfo and tblInfo in some operations of DDL (#1870) 2016-10-26 16:10:43 +08:00
64e181286a ddl: Add table infomation and schema version to history job (#1857) 2016-10-24 14:58:17 +08:00
5df5085e33 *: Add row count field in a job, fix a drop schema bug and pass race (#1759) 2016-09-28 18:11:40 +08:00
5408833b9a ddl: improve ddl test (#1387) 2016-07-05 11:21:50 +08:00
d3cb90559b *: change Context method FinishTxn to CommitTxn and RollbackTxn. (#1253)
Makes it easier to read.
2016-05-24 13:17:01 +08:00
08034540f0 *: Add leak test
* *: add leak test and tiny clean up

* *: unify test format and add leak test

Conflicts:
	store/localstore/compactor_test.go
	mysql/error_test.go
*: add leak test
2016-04-07 20:53:45 +08:00
xia
c4d97a7976 ddl: rename startDDLJob to doDDLJob 2016-03-31 16:20:51 +08:00
d5941446c2 table: replace interface{} with Datum in table. 2016-03-02 21:01:20 +08:00
xia
79aaefbbc0 *: rename job to ddlJob, rename task to bgJob 2016-01-20 12:19:54 +08:00
xia
7d66ae58ac *: update drop database/table operation 2016-01-19 11:43:31 +08:00
c3bdfb1fed stmt/stmts: insert use primary key value as record ID 2015-12-25 21:02:52 +08:00
7336360a59 *: return error instead of log.Fatal for TableFromMeta 2015-12-09 14:30:38 +08:00
75352d81a4 Merge branch 'master' into disksing/refactor-lasetinsertid
Conflicts:
	ddl/ddl_test.go
	plan/plans/from_test.go
	session_test.go
	stmt/stmts/insert.go
	stmt/stmts/replace.go
2015-11-27 13:29:51 +08:00
c4fb85e42b ddl: add drop-column schema test. 2015-11-06 00:34:53 +08:00
c0a03d8e8b ddl: add basic column test and bug fix. 2015-11-05 17:12:57 +08:00
9af7818fc3 ddl: fix compile error. 2015-10-30 21:05:26 +08:00