Commit Graph

8026 Commits

Author SHA1 Message Date
913037ebb9 tablecodec,mysql, util: mysql TypeDuration Fsp (#3499)
Fixed RoundError issue #3471
Bug Cause:
1. when deserialize mysqlDuration, the Fsp is setted with 0 instead of the Fsp from column information.
2. the default decimal for column with TypeDuration is 0.
2017-06-20 11:10:40 +08:00
4b4378fdd4 fix some typo and continue refactor variable name topn (#3505) 2017-06-19 18:31:12 +08:00
c15265e95b *: rewrite concat using new expression evaluation architecture (#3479) 2017-06-19 15:40:16 +08:00
b6ca0ddf8a ranger: make Builder unexport (#3496) 2017-06-19 15:09:37 +08:00
1bdb72e4ec tidb: reset transaction when session retry statement in history meets error (#3503) 2017-06-19 14:28:57 +08:00
5b979d09e0 *: Adding ppc64le specific fixes for some tests (#3477)
The changes were required because of the different behavior of some casting and exponential operations on ppc64le platform.

Add fix for "expression/builtin_math_test.go" and "store/tikv/lock_test.go"
2017-06-19 14:14:12 +08:00
f3f9bbd601 store: refactor variable name (#3502) 2017-06-19 10:57:44 +08:00
844f1c69b4 expression: add SubTime (#3464) 2017-06-16 23:31:38 +08:00
3e7657737b expression, util: consider unsigned when cast (#3457) 2017-06-16 22:39:19 +08:00
19b2fb0e4c table: add GeneratedExpr in table.Column. (#3487) 2017-06-16 21:43:44 +08:00
3a06c4c0a8 *: fix a go vet warning. (#3484) 2017-06-16 20:44:17 +08:00
9c3ac28541 sessionctx/variable: store a copy of timezone in StatementContext (#3495)
There are many place need access to timezone, they come with a StatementContext argument.
So put a copy of timezone into StatementContext to achieve the goal with minimal changes.
2017-06-16 18:33:13 +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
64fd512c79 rawkv: give up supporting empty values. (#3488) 2017-06-16 09:48:00 +08:00
cb9bf47dfc executor: turn on new expr evaluation for testSuite (#3475) 2017-06-15 15:27:40 +08:00
fad663398a coprocessor: fix a pb unmarshal related bug. (#3482) 2017-06-15 14:28:32 +08:00
b73c562ab4 statistics: fix a divided by zero bug (#3481)
* statistics: fix a divided by zero bug

* add test
2017-06-15 13:53:27 +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
bdaf1e9cc7 util/type: fix parseDuration error when parse string of three digit (#3468) 2017-06-15 11:17:18 +08:00
2dd93852ad store/tikv: revise region cache log (#3474) 2017-06-14 20:57:47 +08:00
129c817d8a store/tikv: remove lock in conn array (#3476) 2017-06-14 19:08:17 +08:00
66226c56d3 use multiple grpc connections for one tikv store (#3453) 2017-06-14 17:02:26 +08:00
0343dac8e7 plan: forbidden modify generated column by insert/update. (#3434) 2017-06-14 16:08:14 +08:00
f0fc92745c util/types: select cast(-1 as unsigned) return wrong result. (#3462) 2017-06-14 11:01:55 +08:00
7c9e18621f *: add some privilege columns to mysql.user (#3445)
Create_tmp_table_priv
Lock_tables_priv
Create_view_priv
Show_view_priv
Create_routine_priv
Alter_routine_priv
Event_priv
2017-06-13 21:11:43 +08:00
5dd0165532 Fix Run Empty Alter Table Add Constraint SQL Error (#3456)
* Fix Run SQL like "ALTER TABLE `test`.`t` ADD INDEX `index1` ();"
2017-06-13 20:50:40 +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
4052a6660a Remove authors.md to contributors.md (#3465) 2017-06-13 17:11:06 +08:00
821d928e7a *: use async get timestamp API && remove asyncGetTSWorker (#3459) 2017-06-13 13:05:30 +08:00
cf96dca50c store/tikv: export RunGCJob (#3439) 2017-06-13 12:53:16 +08:00
1ccc71a94a statistics, ranger: add method to calculate the range and row count of non pk column (#3234) 2017-06-13 12:01:05 +08:00
439a47c092 sysvar: fix license (#3460)
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-06-12 20:53:55 +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
4bc3cf7a48 *: support using clause in join statement. (#3372) 2017-06-12 17:14:13 +08:00
703f7045e3 expression, plan: add switch for new expression evaluation architecture (#3438) 2017-06-12 14:27:06 +08:00
1837c097a9 *: Add TTL to the self schema version on etcd (#3427)
* *: add ddl ttl
2017-06-11 14:57:10 +08:00
ff7755451f plan: calculate count and cardinality for join. (#3403) 2017-06-11 12:19:43 +08:00
bce97be93a vendor: update pd to fix a pd-client race (#3451) 2017-06-11 11:34:19 +08:00
071281ff91 store/tikv: refine errors for undetermined result (#3423) 2017-06-10 18:50:02 +08:00
f7c1e1008b expression: improve baseBuiltinFunc.evalTime and evalDuration (#3437) 2017-06-10 11:29:56 +08:00
ddab5422a2 vendor: update pd client. (#3447) 2017-06-09 23:34:44 +08:00
895a35415d expression: implement wrap Expression with cast functions (#3419) 2017-06-09 17:27:02 +08:00
1ac2be8cc5 statisitcs: estimate range result with increase factor. (#3432) 2017-06-09 15:24:15 +08:00
ddc2ffcfa5 parser: add generated column grammar. (#3428) 2017-06-09 14:31:35 +08:00
a7d33e5e0b util/types: add SubDuration method for Duration (#3415) 2017-06-09 12:11:50 +08:00
a438237317 *: refactor binlog and reenable test (#3433) 2017-06-09 11:39:24 +08:00
233513ec5f executor: set statsLease to 0 (#3435) 2017-06-09 10:13:42 +08:00
c030afc77a expression, plan: 1. fix arithmatic func type infer (#3436)
2. add typeinfer for evalAsExpr
2017-06-08 23:17:03 +08:00
fee2fe0450 ddl: remove wait group for owner manager 2017-06-08 20:48:43 +08:00