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
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
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
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
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
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
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
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
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
ec833bc4d2
*: fix some lints produced by golangci-lint ( #8999 )
2019-01-16 16:44:49 +08:00
c2d349ccc0
ddl: fix changes the table charset error ( #9065 )
2019-01-15 15:57:31 +08:00
15b29dd71a
executor: add column character sets when show create table ( #8866 )
2019-01-14 19:59:47 +08:00
44fd7d4670
ddl: modify different character sets varchar type column maximum length limit ( #8818 )
2019-01-14 17:39:50 +08:00
da31a461e7
ddl: fix cancel rename index ddl error ( #8610 )
2019-01-08 19:29:47 +08:00
aeb68f23a6
ddl: fix rename table compatibility ( #8960 )
2019-01-07 19:03:14 +08:00
b3698f6670
executor: fix panic and update error data when table has column in write only state ( #8792 )
2019-01-02 15:49:39 +08:00
eaeaca74ae
ddl: fix cancel drop column ddl error ( #8545 )
2018-12-28 11:28:26 +08:00
ffa375fdc2
ddl: fix cancel drop table/database ddl job bug. ( #8537 )
...
* ddl: fix cancel drop table bugs
2018-12-26 10:34:07 +08:00
d20bf28519
ddl: dynamic adjust add index worker number. ( #8295 )
2018-12-24 11:00:36 +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
198971f4b3
ddl: fix data race in unit test TestChangeColumn ( #8724 )
2018-12-18 14:27:49 +08:00
4cbd50101c
ddl: reduce the time to run unit tests ( #8585 )
2018-12-14 16:12:50 +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
e03ef6099c
ddl: support alter table .. truncate partition ( #8624 )
2018-12-11 13:52:57 +08:00
1d7d01cfe8
ddl: support altering the other charset to utf8 or utf8mb4 ( #8037 )
2018-12-10 12:58:18 +08:00
6e2d6c7aa7
ddl: fix cancel drop index error ( #8504 )
2018-12-07 23:29:23 +08:00
93acd10f53
*: add context.Context to NewTxn(), tiny refactor ( #8530 )
2018-12-06 17:45:16 +08:00
dbf140f835
*: support select, insert for hash partition table. ( #8411 )
2018-12-05 23:47:29 +08:00
c137cada68
*: change golang.org/x/net/context to standard context ( #8579 )
2018-12-05 13:54:00 +08:00
b3e40bf94f
ddl: alter table add partition on hash partitioned table ( #8375 )
2018-12-04 15:17:53 +08:00
0b8417614c
ddl: support truncate table on hash partitioned table ( #8401 )
2018-12-03 16:12:41 +08:00
d301c16e0e
ddl: fix a bug that cancel add index ddl job when workers are not run, which cause tidb ddl hang up ( #8171 )
2018-11-28 17:10:55 +08:00
e11859e653
*: support creating a hash partitioned table ( #8026 )
2018-11-20 16:15:09 +08:00
c84537dc94
ddl: fix drop database bug if the database has partition table ( #8319 )
2018-11-19 14:21:13 +08:00
e8d0f210d3
ddl: add check when build enum, set column ( #8003 )
2018-11-16 21:14:51 +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
29f14d4178
*: change default charset and collation from 'utf8 utf8_bin' to 'utf8mb4 utf8mb4_bin' ( #7965 )
2018-11-09 16:32:21 +08:00
d125958380
tikvclient: Add endKey param to Scanner ( #8178 )
2018-11-08 18:21:40 +08:00
b9aa731ba4
ddl: refine error msg when alter table ( #8114 )
2018-11-05 11:15:33 +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
dc8b94b51f
ddl: add check when add foreign key. ( #8050 )
2018-10-31 19:11:05 +08:00