Commit Graph

573 Commits

Author SHA1 Message Date
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00
fc209cb1df *: rewrite hex and bit literals (#4415) 2017-09-07 16:28:24 +08:00
20a928e03e ddl: Add a limit for columns in a table (#4464) 2017-09-07 16:06:32 +08:00
3e125a4ccb ddl: Add the txn entry limit (#4458) 2017-09-07 13:27:30 +08:00
44f716fb13 ddl: Remove TODO about check all versions to handle the waiting time problem (#4271)
* ddl: remove the todo in ddl_worker
2017-09-06 13:59:24 +08:00
75230f9f1d types, plan: return ErrInvalidDefault when date type column option of create table statement has a now() default value (#4430) 2017-09-05 17:02:47 +08:00
ea29a1c30d expression: Support more types when getting default flen and decimal (#4236) 2017-08-28 02:26:07 -05:00
881d76840b plan,executor: calculate generated columns in CRUD. (#3951) 2017-08-23 14:52:43 +08:00
7c273c0f29 *: implement auto analyze (#4141) 2017-08-18 18:42:28 +08:00
5340b67466 remove all stuff about backgroud DDL worker. (#4227) 2017-08-18 16:34:28 +08:00
f5fd467f46 *: change terror.ErrorEqual to Error.Equal, which is more effetive (#4217) 2017-08-17 20:06:48 +08:00
dcbfd71f68 ddl: Use the correct error (#4221) 2017-08-17 19:14:29 +08:00
65f94b7565 ddl: Update the max interval of checking job (#4175) 2017-08-15 11:47:59 +08:00
ed107542cf ddl: rename the interface (#4153) 2017-08-11 20:45:31 +08:00
50665d5f47 ddl: Handle the error of ErrClientConnClosing (#4117) 2017-08-09 22:29:07 +08:00
3cb7728103 ddl: add generated check in onDropColumn (#4104) 2017-08-09 19:16:57 +08:00
1eebb87156 ddl: remove backgroud worker, use delete-range to speed up something. (#3993) 2017-08-09 16:59:25 +08:00
3347eaca69 ddl: tiny clean up (#4103) 2017-08-09 16:30:50 +08:00
bae8fe46f9 ddl: index name should not be primary (#3834) (#4030) 2017-08-06 20:59:14 +08:00
e9785fda15 *: fix some error related issues (#4032) 2017-08-06 00:17:08 +08:00
5684739bed ddl: Add a safeguard for lease not found error (#3869) 2017-08-04 10:32:45 +08:00
4880d920e7 Pass sessionVars for stats() to support session-scoped status vars. [ci skip] (#3974) 2017-08-02 15:29:16 +08:00
dff73cc6e4 *: Modify the Makefile for go vet (#3900) 2017-07-30 23:02:52 -05:00
597796e166 *: fix bad column offsets in DML. (#3754) 2017-07-28 20:56:25 +08:00
b991c56d9f plan: fix name with white space at the end (#3927)
* Column, table, database names with space at the end will return error
2017-07-28 18:12:23 +08:00
e94996addf *: add parser support for multiple tables renaming (#3892) 2017-07-27 20:01:24 +08:00
0806aac33b Index char(0) should be failed (#3864) 2017-07-26 08:23:48 +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
a19ad3f480 ddl: support create index with type and comment (#3814) 2017-07-20 19:01:14 +08:00
ae3c67911d ddl: Fix the wrong offset when using PK as an index (#3820)
* ddl: fix wrong offset
2017-07-20 12:59:13 +08:00
cb4e3dd3d4 ddl: fix a version bug (#3800) 2017-07-19 13:08:13 +08:00
bc713303fc ddl: fix modify column behavior about primary / unique key (#3748) 2017-07-17 15:49:57 +08:00
81b008338a ddl: disable alter table modify enum column (#3657) 2017-07-07 15:51:21 +08:00
cf608d88f5 ddl: virtual column cannot be used in primary key. (#3645) 2017-07-07 09:24:47 +08:00
403cc7a765 ddl: set no default flag when alter/change col (#3634) 2017-07-06 15:33:23 +08:00
d07f2eae96 ddl: fix add index with PK (#3622) 2017-07-05 10:13:54 +08:00
3b26de9c9f Fix typo (#3583) 2017-06-30 14:48:45 +08:00
d0e859174a ddl: Break campaignLoop when closing DDL (#3553)
* ddl: break the loop when closing
2017-06-28 10:54:20 +08:00
76c07f6abb plan, ddl: add validate in checkCreateTableGrammar, to fail creating … (#3554)
* plan, ddl: add validate in checkCreateTableGrammar, to fail creating an empty table

* *: Tiny cleanup

* ddl: add ddl.ErrWrongTableName comment

* ddl: rename errWrongTableName to ErrWrongTableName, for validator.checkCreateTableGrammar use.
2017-06-28 00:14:44 +08:00
11a1767e71 *: Get ddl owner ID (#3525) 2017-06-27 11:24:50 +08:00
ccd261010d ddl: update binlog position and update logs (#3534) 2017-06-23 14:41:51 +08:00
a5d14645d0 *: Fix add index after add column with default value (#3510) 2017-06-20 13:32:22 +08:00
444983cdfd *: Fix a DDL bug about wait time (#3498)
* *: fix a DDL bug about wait time
2017-06-20 11:30:22 +08:00
19b2fb0e4c table: add GeneratedExpr in table.Column. (#3487) 2017-06-16 21:43:44 +08:00
7908193b70 *: Fix rename table auto id conflict problem (#3493) 2017-06-16 16:46:27 +08:00
3968328b52 ddl/domain: Update logs (#3491) 2017-06-16 11:25:48 +08:00
3b9e5de9a5 *: Remove the useless code about DDL owner info (#3472)
* *: remove useless code about the ddl owner
2017-06-15 12:32:27 +08:00
9575deeb10 ddl: add more features about generated column. (#3431)
DESC table_with_generated_column;
SHOW CREATE TABLE table_with_generated_column;
If generated expression in DDL references bad column, throw error;
If alter table change/drop column dependent by other columns, throw error;
if alter table change/modify generated columns, throw error if needs.
2017-06-13 18:53:58 +08:00
39b1fda556 ddl: Revoke the session when the DDL will close (#3454) (#3461)
* ddl: Revoke the session when the DDL will close (#3454)
2017-06-12 18:03:15 +08:00
1837c097a9 *: Add TTL to the self schema version on etcd (#3427)
* *: add ddl ttl
2017-06-11 14:57:10 +08:00