Commit Graph

8026 Commits

Author SHA1 Message Date
d0b00665aa domain,executor: ignore restricted sql for statement count metrics (#4064)
To make the statement count metrics more precise, we should ignore
some background job such as update statistics and load privilege.
2017-08-07 17:00:46 +08:00
5a3a539cad plan: fix bug about processing property of reader plan. (#4065) 2017-08-07 16:21:45 +08:00
128d752939 expression: rewrite builtin string function: FROM_BASE64 (#4040) 2017-08-07 15:24:35 +08:00
fafd205f42 *: rewrite ifnull (#4050) 2017-08-07 13:24:48 +08:00
21c0bfe32e Add nil check on cacheItemInfos[currVer] to (#4058)
prevent nil dereference.
2017-08-07 00:12:32 -05:00
9f4475844e *: support binary flag of type char and fix type inferer of some string built-in funcs (#4035) 2017-08-07 12:28:32 +08:00
bae8fe46f9 ddl: index name should not be primary (#3834) (#4030) 2017-08-06 20:59:14 +08:00
e9785fda15 *: fix some error related issues (#4032) 2017-08-06 00:17:08 +08:00
feecc6ed02 plan: fix bug when access cond is not scalar function (#4044) 2017-08-05 17:28:31 +08:00
6e0ff81269 parser: support DISTINCTROW(#4007) 2017-08-04 19:37:53 +08:00
0a0a1a16d7 domain: Make test stable (#4034) 2017-08-04 19:15:26 +08:00
059f6dd2f1 executor, expression, plan: remove rowMeta from row (#3758) 2017-08-04 18:37:31 +08:00
96461f92cf plan: let explain show count (#4031) 2017-08-04 18:15:43 +08:00
ab53786d33 *: Define the schema change at the table level (#3999) 2017-08-04 17:53:38 +08:00
02b56b31ac Fix issue3844 (#4029) 2017-08-04 16:47:45 +08:00
96c3ff7c2f *: add variable to control batch size of index join (#4028) 2017-08-04 14:53:05 +08:00
b4715f5895 expression: function SUBSTR/LEFT/RIGHT should manipulate code points instead of bytes(#4019) (#4027) 2017-08-04 14:45:22 +08:00
a5b26bb665 plan: make hashjoin's cost more reasonable. (#4022) 2017-08-04 13:51:07 +08:00
de14330b95 plan: prune search space. (#4020) 2017-08-04 11:34:16 +08:00
5684739bed ddl: Add a safeguard for lease not found error (#3869) 2017-08-04 10:32:45 +08:00
3d8d1d6f45 *: refine tests. (#4016) 2017-08-04 00:15:20 +08:00
520785b149 *: fix possible race in stats update (#3987) 2017-08-03 20:54:15 +08:00
9397602e74 plan: adjust index join's cost estimation model (#4014) 2017-08-03 20:43:59 +08:00
8a1e93bc8e *: add cbo switch. (#3877) 2017-08-03 19:28:17 +08:00
9a40975437 executor, expression: fix floor and ceil when handle int overflow (#3980) (#3981) 2017-08-03 19:01:00 +08:00
13b1c87957 plan: fix a panic when executing union. (#4013) 2017-08-03 18:43:42 +08:00
50a4362288 terrror: a tiny refinement on ErrorClass.String (#4002) 2017-08-03 15:33:43 +08:00
722c450ec3 executor: Make union test stable (#4001) 2017-08-03 13:57:39 +08:00
52317946e4 *: fix union scan's bug. (#4000) 2017-08-03 13:30:52 +08:00
0e8bffa44e executor: fix bug when do outer index join (#3998) 2017-08-03 12:08:02 +08:00
43c4b1f2ad server: add a tcp keep alive start up option (#3995) 2017-08-03 10:01:37 +08:00
bedd8790a9 executor: fix bug in index lookup join (#3992) 2017-08-02 22:24:57 +08:00
3243b46b62 types: handle zero value in RoundFrac (#3989) 2017-08-02 20:59:33 +08:00
4880d920e7 Pass sessionVars for stats() to support session-scoped status vars. [ci skip] (#3974) 2017-08-02 15:29:16 +08:00
8adac8fe6c *: set low priority for expensive SQL and high priority for point get (#3881) 2017-08-02 13:53:36 +08:00
1baee60037 plan: avoid panic in explain (#3979) 2017-08-02 11:02:04 +08:00
6921161fde types, expression: cast string as time (#3977)
fix issue #3942
TiDB doesn't treat '.' as a special point, '.' is the fractional seconds part delimiter
2017-08-01 23:35:20 +08:00
161c532025 parser: (partially) fix float point parsing with leading dot (#3964) 2017-08-01 22:28:48 +08:00
c27747649c server: make show processlist doesn't include killed session (#3978) 2017-08-01 22:07:45 +08:00
6ea563fe5b Fix issue 3966, get_format(TIMESTAMP, 'USA') (#3976) 2017-08-01 20:00:36 +08:00
d0dcb5b0a6 expression, parser: fix issue #3691, cast compatibility (#3894) 2017-08-01 16:47:38 +08:00
01c1d4c5c5 executor: truncate the trailing spaces for "CHAR[(M)]" types (#3878) 2017-08-01 16:15:25 +08:00
289a906861 plan: move explan_test.go to plan package. (#3972) 2017-08-01 14:45:11 +08:00
2745333435 parser,plan: support \N shortcut for null (#3943) 2017-08-01 14:16:43 +08:00
7874e989eb *: support natural join. (#3861) 2017-08-01 13:56:29 +08:00
26f622d1a7 plan, executor: implement ExplainInfo() interface for data source operators (#3953) 2017-08-01 13:08:24 +08:00
3527750130 expression, executor, plan: rewrite builtin function trim. (#3936) 2017-08-01 10:54:31 +08:00
58dca67d6e *: fix close problem for index look up executor. (#3957) 2017-07-31 21:13:42 +08:00
c8d31054b7 explain: fix a panic for explain. (#3955) 2017-07-31 19:39:28 +08:00
f283948ae9 plan: fix the order of schema columns (#3946) 2017-07-31 15:49:14 +08:00