Commit Graph

345 Commits

Author SHA1 Message Date
cbddbcdcd0 *: fix add record panic (#1482) 2016-07-22 08:38:18 +08:00
e402fc81ab *: add constraint for the length of the index prefix (#1462) 2016-07-18 13:03:39 +08:00
fda013b080 ddl: set default value to zero value when add a not null column. (#1443) 2016-07-14 10:57:34 +08:00
13910f108c ddl: fix ddl update join table. (#1426) 2016-07-12 12:52:18 +08:00
e0dfdc25ed Length check for database, table and column name (#1418) 2016-07-11 13:36:20 +08:00
8edbf557a2 *: remove MemBuffer cache and Release method. (#1411) 2016-07-08 11:57:02 +08:00
6c8a9bdc42 ddl: increase ddl test sleep time. (#1402)
Or the job may not have done, test may fail.
2016-07-06 16:27:36 +08:00
e808e842e9 ddl: improve index change test. (#1392) 2016-07-05 17:37:32 +08:00
5408833b9a ddl: improve ddl test (#1387) 2016-07-05 11:21:50 +08:00
0450ba0b47 *: unify "See url" format (#1391)
* *: unify "See url" format
2016-07-05 11:21:10 +08:00
d04b0b997c *: support index length (#1350)
For string columns, indexes can be created that use only the
leading part of column values, using col_name(length) syntax
to specify an index prefix length
2016-07-02 13:26:40 +08:00
618a00218d ddl: fix prepare background job. (#1374)
`prepareBgJob` should run in the same transaction as `handleDDLJobQueue`.
2016-07-01 17:40:32 +08:00
a0e3c2ee3b ddl: fix column test (#1354) 2016-06-28 12:37:12 +08:00
cad94acb54 Store row data in single kv pair (#1347) 2016-06-28 11:15:09 +08:00
633b5b9a9a *: Clean up tablecodec and tables (#1338) 2016-06-22 17:11:54 +08:00
ee1bdd699a *: Cleanup table codec (#1337)
Prepare for row-based storage model
2016-06-22 15:24:56 +08:00
a9aad12ba8 *: move tablecodec package out of xapi. (#1335) 2016-06-22 13:32:26 +08:00
dd6bfacdb8 *: refactor index, use TableInfo and IndexInfo to create an Index (#1333) 2016-06-21 15:26:20 +08:00
75f089d056 util/types: clean up, removed unused code. (#1281) 2016-06-02 10:42:36 +08:00
c9413d622b *: fix auto increment type (#1262) 2016-05-26 17:18:37 +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
622f8fca2a *: refactor, move index and column into table package. (#1251) 2016-05-24 11:08:15 +08:00
e069bd8df4 fix default null bug in ddl
fix default null bug and add unittest
2016-05-18 14:49:23 +08:00
907431cf03 ddl: fix a bug in fktest (#1176)
* ddl: fix a bug in fktest

* address comment.
2016-04-28 16:17:23 +08:00
e742def024 add foreign key on update and on delete support (#1152)
* add foreign key on update and on delete support
2016-04-27 19:44:00 +08:00
bbffc220ed *: Tiny cleanup (#1145)
Fix typo
2016-04-23 10:27:13 +08:00
c26dfd54e4 executor: Change interface to datum in executor. (#1103)
Change interface to datum in executor.
2016-04-20 09:52:23 +08:00
0537b67d2b *: Add more info into TableInfo and fix bug in show create table (#1072)
Fix: https://github.com/pingcap/tidb/issues/1061
2016-04-09 15:59:51 +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
xia
6aacddd44e *: unify error format 2016-03-31 16:20:47 +08:00
xia
d17e99073d *: unify errors in ddl package 2016-03-29 11:37:33 +08:00
xia
4319909e08 *: unify error format in infoschema package 2016-03-29 11:10:56 +08:00
xia
4a2fe15c63 Merge remote-tracking branch 'origin/master' into zimuxia/issue-962
Conflicts:
	ddl/ddl.go
2016-03-18 14:38:59 +08:00
xia
7a7026e750 *: add a null kind judgment in the update statement and update comments 2016-03-18 14:29:57 +08:00
xia
15c0319294 *: fix issue 962 and handle other questions about auto increment. 2016-03-18 12:23:55 +08:00
ce96978182 *: Add index option in IndexInfo
1. Add index option in IndexInfo.
2. Show index option content when running show index statement.
2016-03-16 22:09:11 +08:00
2e13076c4a *: Ignore foreign key when check index name duplication 2016-03-16 11:33:40 +08:00
0fed9dbc5e ddl: fixed test bug 2016-03-05 11:30:06 +08:00
ac12b71714 *: replace interface{} with Datum in convert. 2016-03-07 14:11:17 +08:00
515f193bd2 *: Remove coldef package
There are lots of redundancies between ast and coldef. So we remove
coldef.
2016-03-05 19:11:04 +08:00
380e6fd0a6 Merge branch 'master' into master 2016-03-04 14:21:04 +08:00
06cc381fa5 ddl:Delete the useless judgment 2016-03-04 14:11:04 +08:00
3d06fb90fe *: replace interface{} with Datum in kv.Index 2016-03-03 11:41:09 +08:00
d5941446c2 table: replace interface{} with Datum in table. 2016-03-02 21:01:20 +08:00
9b3a4ff434 ddl: fix a bug in ddl close
Fix a bug in https://github.com/pingcap/tidb/blob/master/ddl/ddl.go#L132.
2016-03-02 15:12:57 +08:00
043ebd5ec8 *: Refactor package organization
1. Move evaluator from optimizer to root dir.
2. Move builtin from expression to evaluator.
3. Remove expression package.
2016-03-02 13:48:22 +08:00
d9f98132ee ast: introduce 'Datum'
Datum is a value box intended to replace 'interface{}' for better performance and easier to use.
2016-03-01 10:54:59 +08:00
68eb8e567e *: remove old code 2016-02-29 11:40:32 +08:00
xia
d8afe83b9f ddl: fix background work test panic 2016-02-25 11:45:59 +08:00