b812cb517e
expression, util: DecodeDecimal return real precision and frac ( #6732 )
2018-06-08 15:37:32 +08:00
12d4c5aea5
*: support 'show master status' ( #6785 )
2018-06-08 12:36:12 +08:00
8e00ca98f4
plan, parser: fix wrong LIMIT/ORDER BY check of the UNION statement ( #6783 )
2018-06-08 10:52:08 +08:00
39a8d0eb7a
executor: support parallel projection ( #6323 )
2018-06-07 22:50:54 +08:00
1082b1a0f3
plan: refine the result of EXPLAIN statement ( #6755 )
2018-06-07 20:13:16 +08:00
db4888a697
plan, parser: fix the wrong result of the UNION statement ( #6752 )
...
tidb diff result with mysql when mix use union and union-all fix #6731
- rename `selectStmt.UnionDistinct` to `selectStmt.IsAfterUnionDistinct`
- add explain test
- remove useless `unionStmt.Distinct` and `selectList.Distinct`
- refactor use golang slice, remove dup code
- return WrongNumColumnInSelect error and add test case
2018-06-07 17:08:26 +08:00
a54ab4270c
executor: gather all the error definitions together ( #6772 )
2018-06-07 10:58:03 +08:00
12a62e86b1
*: Fix select lock option for union statement ( #6579 )
...
If for update appears after order by or limit in union, then it is ignored.
If there is no order by or limit, it affects only the near select statement.
This locks both statements.
```
select * from t for update union select * from s for update;
```
This is syntax error:
```
(select * from t) union all (select * from s) for update;
```
2018-06-06 22:17:09 +08:00
96a5109ebb
types: handle NULL datum if we need convert it to string. ( #6761 )
...
* types: handle `NULL` when we need to
2018-06-06 20:15:48 +08:00
7227db3a0c
executor: fix drop user bug ( #6624 )
2018-06-06 17:13:28 +08:00
7314bdc69c
session: support tso when use tidb_snapshot ( #6749 )
2018-06-06 12:47:06 +08:00
a8feebee39
executor: make admin check table error more readable. ( #6617 )
2018-06-05 14:16:30 +08:00
b8539dc62a
plan, executor: fix the wrong result of merge join ( #6753 )
2018-06-05 13:23:52 +08:00
1327ebbf96
ddl: year type should not has unsigned flag ( #6745 )
2018-06-04 18:38:17 +08:00
30f16016d1
types: fix unsigned decimal check and negative overflow bugs ( #6721 )
2018-06-04 15:04:03 +08:00
64e3acadee
admin: admin check table do not use the timezone of session, it leads to false alarm. ( #6699 )
2018-06-04 14:14:04 +08:00
4a36ef721c
executor: DML use DatumRow ( #6720 )
2018-06-01 10:22:02 +08:00
950268b2aa
executor: don't output foreign keys in show create table statement. ( #6693 )
2018-05-30 16:14:51 +08:00
ce071f5dd3
refactor load data ( #6665 )
2018-05-29 21:19:14 +08:00
0969cd5349
plan: Fix the empty result of join ( #6669 )
...
* plan: make "Position" starts from 0
2018-05-29 16:29:47 +08:00
93efc51b96
*: unify the connection ID format in log ( #6670 )
...
Makes tracing the events of a session easier.
2018-05-29 00:31:16 +08:00
36c3f0dd36
split write.go ( #6660 )
2018-05-28 14:29:42 +08:00
eaf82968c4
Executor: fix affected rows count when update ( #6656 )
2018-05-28 10:24:39 +08:00
d3a69d8b04
*: set rollback log to debug level ( #6653 )
2018-05-26 22:11:27 +08:00
fbba541156
*: move basic functions and definitions to model package, to make constructing dag request more easier. ( #6652 )
2018-05-26 20:39:22 +08:00
9150b0f25e
executor, expression: fix a panic of MAX/MIN ( #6632 )
2018-05-24 18:28:32 +08:00
cf0e1c9743
plan: fix a bug in rebuildRange when enabling prepare-plan-cache. ( #6637 )
...
* plan: fix a bug in `rebuildRange` when enabling prepare-plan-cache.
2018-05-24 17:24:30 +08:00
a4715d5d75
*: unflatten datum in checkIndexAndRecord, to fix admin check table false alarm ( #6625 )
2018-05-24 15:56:02 +08:00
30fe5262b5
fix show create table display mistake ( #6630 )
2018-05-23 22:31:06 +08:00
d1bd647732
support high_priority for delete/update/replace into ( #6592 )
2018-05-23 12:35:16 +08:00
f400c64e26
chunk: fix delete index in year type; ( #6611 )
2018-05-23 00:07:43 +08:00
d965658251
executor: fix a bug of duplicate key update ( #6589 )
2018-05-22 13:00:08 +08:00
f701c4a51d
executor: rewrite TestNotFillCacheFlag to avoid data race in CI ( #6543 )
2018-05-18 16:36:10 +08:00
ce0c9f373b
*: add schema version to the log ( #6527 )
2018-05-18 14:01:47 +08:00
6f2ccfc7f6
ddl: check auto_increment column for shard_row_id_bits statements. ( #6572 )
2018-05-18 13:13:09 +08:00
1931bd3919
plan: fix bug in prepare statement. ( #6539 )
2018-05-17 17:34:56 +08:00
c0dea7e936
*: move leak check from each test to suite ( #6541 )
2018-05-15 20:05:03 +08:00
10e57a5cef
*: save gc_delete_range items that is done in another table instead of deleting them. ( #6512 )
2018-05-14 07:09:15 -05:00
39e1db6b7b
parser: fix the compatibility problem of UNION statement ( #6335 )
2018-05-14 15:22:49 +08:00
5c2d21eab4
*: remove function "NewChunk" ( #6524 )
2018-05-14 13:43:19 +08:00
b3bb5e8c8f
*: support warnings when using coprocessor streaming ( #6544 )
2018-05-13 22:10:58 -05:00
2fe3581819
plan: resolve indices for apply schema ( #6540 )
2018-05-11 22:02:12 +08:00
b175f27a0a
executor: set last insert id in the duplicated update statement ( #6345 )
2018-05-09 15:40:35 +08:00
8562ff4712
ddl: fix bug when add index meet math.MaxInt64 handle. ( #6481 )
2018-05-09 02:13:38 -05:00
3db7594fa5
*: Refine error message about "Out of range value for column" ( #6334 )
2018-05-09 15:00:52 +08:00
6248a74d6f
plan: refactor errors ( #6377 )
2018-05-09 13:07:21 +08:00
877d0d4d3d
*: fix a bug occurred when insert into time column ( #6451 )
...
* *: fix a bug when insert decimal or decimal-like string into time col
2018-05-09 10:52:30 +08:00
60e7a50136
executor: fix a wrong result of limit operator when offset is a multiple of MaxChunkSize ( #6498 )
2018-05-08 16:16:31 +08:00
aa76a6eeba
plan, executor: correlated column can be pushed down. ( #6403 )
2018-05-07 19:43:02 +08:00
4185e53006
tikv/txn: support local latch in transaction ( #6418 )
2018-05-07 10:57:01 +08:00