Commit Graph

965 Commits

Author SHA1 Message Date
6e085bedb6 ddl: fix create table with like bug when refer table has non-public column/index (#9580) 2019-03-11 20:24:45 +08:00
8e812d87c0 ddl: check no partitions error when create partition table (#9531) 2019-03-09 13:13:42 +08:00
a9caa792b1 ddl_test: fix the wrong test (#9610) 2019-03-08 10:45:47 +08:00
548afb0c76 ddl: fix data race in test (#9526) 2019-03-07 22:10:08 +08:00
76e1e58511 build: add check-static in test (#9572) 2019-03-07 15:56:15 +08:00
b3d49c2f22 ddl:fix data race in call_back_test.go (#9491) 2019-03-07 15:03:38 +08:00
0267a7fbdf ddl: validate fsp for datetime/timestamp if they are used as defaultvalue of datetime/timestamp columns (#9327) 2019-03-04 11:19:11 +08:00
7ac4902b8f ddl: disallow generated column referring to auto_increment column (#9234) 2019-03-01 11:50:13 +08:00
0c97db891d ddl: fix data race about ReorgWaitTimeout in tests (#9483)
* ddl: fix data race about ReorgWaitTimeout in tests
2019-02-28 20:43:55 +08:00
d60b3ff512 ddl: don't modify a column charset when the table's version is TableInfoVersion1 (#9480) 2019-02-27 16:29:27 +08:00
4449eb062a ddl: add ddl job error count limit, exceed the limit should cancel the ddl job (#9295) 2019-02-27 15:03:04 +08:00
c8c92e2dd7 ddl: refine cancel modify column, add/drop foreign key rollback (#9419) 2019-02-27 14:07:34 +08:00
8369ed2ffc ddl, util: Handle default values for generating column expressions when adding an index (#9371) 2019-02-27 12:59:18 +08:00
511a80bae4 ddl: fix check column field length when add column (#9143) 2019-02-27 11:10:38 +08:00
f32a194b8a ddl: fix modify column null to not null bug (#9427) 2019-02-27 10:22:07 +08:00
56a79ef080 ddl: write binlog when ddl job state is done. (#9207) 2019-02-26 18:37:21 +08:00
266ff4b6f3 executor, ddl: get the correct result of "show create table" when adding the first index to the table (#9388) 2019-02-22 18:49:44 +08:00
9b692c07f4 style:fix ineffassign and mis-spell (#9415) 2019-02-22 18:13:04 +08:00
79a88a0b3c ddl: fix cancel truncate table ddl error (#8977) 2019-02-22 16:58:04 +08:00
bae5cab29e ddl: fix unique key constraint check for 'create table' (#9345) 2019-02-22 16:23:38 +08:00
18449d777a *: merge statement buffer when BatchGetValues (#9374) 2019-02-22 11:06:58 +08:00
8357d0a234 ddl: add err check in table.go (#9385)
fix the errcheck
2019-02-21 16:58:47 +08:00
a5188a8370 ddl: return warnings when the alter algorithm is COPY, return errors when the algorithm is wrong (#9367) 2019-02-21 14:59:50 +08:00
f46c558a60 ddl,table/tables: handle partition by range column when len(column)=1 (#9082)
create table ... 'partition by range column', when len(column)=1,
the case can be transformed to 'partiton by range'
2019-02-20 17:02:14 +08:00
dec3ab6358 ddl: support alter algorithm INPLACE/INSTANT (#8811) 2019-02-20 10:22:26 +08:00
45ee205896 ddl :fix cancel add/drop partitioned table ddl job (#8938) 2019-02-19 17:22:41 +08:00
5bf9ad965d ddl: check unique key constraint for 'alter table add index' on partitioned table (#9323) 2019-02-19 14:12:44 +08:00
b845f2a4da executor, planner: support show create view (#9309) 2019-02-19 10:18:57 +08:00
94d21c57aa * fix timestamp default value bug in multiple time zones. (#9115) 2019-02-18 15:35:27 +08:00
33a961decf ddl: fix canceling model.ActionRebaseAutoID and model.ActionShardRowID ddl jobs (#9226) 2019-02-18 11:34:13 +08:00
6136ab14cf *: start replacing logger with zap logger (#9279) 2019-02-15 16:43:47 +08:00
3d4ad1fb80 executor: make the results of show create table more consistent with MySQL (#9229)
* Fix #9211: make  more consistent with MySQL
2019-02-15 11:26:11 +08:00
d96ca96941 executor:adjust 'show create table' for mysql compatibility (#9113)
* executor: adjust 'show create table'

show create table should not print the charset of the column
if it is the same with table charset( same with MySQL)

* update:change the test

* update: add test to improve CodeCov

* style: update the variable

* fix test

* Wait for change parser

* just need to test

* change go.mod

* fix invalid pointer access

* Revert "update:change the test"

This reverts commit 64b381b2e95f151a9756d67ba52b60f694573cf9.

* Revert "fix test"

This reverts commit 98e00954064c9f5a6aa4ae1d4fb529e27cfabf4e.

* Revert "update: add test to improve CodeCov"

This reverts commit a32d6e992ca239e893f0615cea988838f3952dd7.

* passed test(need change test data)

*  add judge when show create table

*  fix logic wrong

*  add test

* change variable name

* revert something because complex

* update go.mod

*  update go.mod
2019-02-14 15:49:38 +08:00
6a984412c7 ddl: use original column name in duplicate column error (#9291) 2019-02-14 13:15:15 +08:00
c8554f826d ddl: fix a bug when adding an index to a generated column with an expression error (#9216) 2019-02-12 17:47:48 +08:00
4ad4684da1 privilege,planner: handle View's security privilege check (#9194) 2019-02-12 10:35:18 +08:00
bcecc91362 ddl: fix default value precision problem for time types (#9249) 2019-02-11 12:15:09 +08:00
20c1b95bc8 ddl: fix ddl test fail by paralle test (#9210) 2019-01-29 15:01:44 +08:00
5c65128632 ddl: make the leak test stable (#9139) 2019-01-23 13:01:55 +08:00
cfb63114c2 ddl: restricting altering the utf8 charset to utf8mb4 (#9107) 2019-01-22 11:20:16 +08:00
63936cc1fa ddl: resolve the charset by the order: table->database->server (#9105) 2019-01-21 19:56:40 +08:00
89f4e640fb *: remove unused tidb/terror (#9138) 2019-01-21 19:03:22 +08:00
59c7b69187 ddl: disallow alter table on view (#8890) 2019-01-17 00:57:21 +08:00
f522de2e8f ddl: support "or replace" option when create view (#8856) 2019-01-16 19:54:22 +08:00
083b818bf4 ddl: fix NO_ZERO_DATE handled incorrectly (#8765) 2019-01-16 17:47:53 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
365264cd21 ddl: add restore deleted table (#7937) 2019-01-16 15:37:33 +08:00
c2d349ccc0 ddl: fix changes the table charset error (#9065) 2019-01-15 15:57:31 +08:00
e6a0eb9246 executor: support "show create table" for View (#8865) 2019-01-15 13:31:22 +08:00
3c98f69266 *: support select partition for partition table (#8990) 2019-01-14 20:55:52 +08:00