Commit Graph

420 Commits

Author SHA1 Message Date
8a33340f2b expression: fix the panic when we use unix_time expression in prepare and execute statement. (#17855)
* expression: fix Const.DeferredExpr's wrong behavior

* clean the code

* FIX UT

* revert the change and add check for `funcCallToExpression`

* solve conflicts

* fix typo

* address comments

Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-15 12:42:01 +08:00
83632ecc6e ddl: fix a bug that creating a table with set column don't handle collation correctly (#17905)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-10 19:37:40 +08:00
30cb0312d1 tablecode: improve the coverage of key path in tablecodec (#16986) 2020-06-10 14:42:15 +08:00
4856f80d98 expression: fix a bug that the coercibility of user variable is wrong (#17676)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-10 13:12:11 +08:00
36ea109b83 *: record execute runtime information in slow log (#17573) 2020-06-09 12:16:47 +08:00
1481cccb35 table: improve the coverage of key path in table (#17026)
* cover column

* cover collation union_scan

* go fmt

Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-08 12:39:45 +08:00
7fc1ca3174 types/json: fix JSON comparison for int and float (#17622) 2020-06-05 16:05:58 +08:00
a501f25b2a expression: Fix the wrong behavior of const.String() (#17495) 2020-06-04 15:04:00 +08:00
23af4b9be9 expression: fix a bug that hex function return the wrong result if the type of column is binary string (#17590)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-03 11:32:02 +08:00
d53336bd4a planner: support sql_select_limit session / global variable (#17444) 2020-06-02 18:02:29 +08:00
23759514ec expression: support collation for REGEXP function (#17255) 2020-06-02 15:18:47 +08:00
eafa1229ab expression: fix wrong result for field function (#15511) 2020-06-01 17:00:19 +08:00
f1b21b562a types: match MySQL behavior with datetime delimiters (#17376) 2020-05-29 11:05:35 +08:00
8da89b7af8 expression: speed up TestIssue16697 (#17400) 2020-05-26 13:58:14 +08:00
ac30f5322e mockstore: introducing embedded unistore (#17156) 2020-05-18 17:28:44 +08:00
78d69004ad ddl: consider collation when checks enum value in create table statement (#17177) 2020-05-15 16:49:22 +08:00
bcbc25db68 executor: make the aggregation function distinct consider collations (#17182) 2020-05-15 15:59:15 +08:00
ea2e215ff8 *: fix a bug caused by the wrong collation setting which leads to the wrong result of collation function (#17116) 2020-05-15 13:30:49 +08:00
1417ba2288 *: fix a bug that don't handle truncate properly for virtual generated column (#17217) 2020-05-14 20:57:55 +08:00
52837168ea executor: make memory tracing in ProjectionExec more accurate (#17109) 2020-05-12 14:13:05 +08:00
6a49bb4a84 *: fix a bug which causes function return truncated result (#17101) 2020-05-12 12:54:35 +08:00
d8c0659681 planner: fix TiDB server panic when uses indexMerge with the virtual generated column (#17065) 2020-05-11 15:40:29 +08:00
d823deb583 expression: fix case-sensitive problem for function INSTR and LOCATE (#16792) 2020-05-09 18:00:05 +08:00
3224393c7f executor: fix wrong plan type for dataReaderBuilder error (#17028) 2020-05-08 14:34:45 +08:00
9d391949cd expression: refactor logic about checking illegal mix collations (#16866) 2020-04-29 16:40:56 +08:00
8fa4ffdf4c expression: mark row_count as un-cacheable (#16654) 2020-04-23 14:27:50 +08:00
242ce93302 Revert "expression: support NO_ZERO_DATE sql_mode" (#16740) 2020-04-23 13:37:19 +08:00
db7c13537a expression: support NO_ZERO_DATE sql_mode (#16053) 2020-04-22 23:27:01 +08:00
692e0098b1 expression: avoid Order By constant expression error when pl… (#16261) 2020-04-21 20:04:23 +08:00
94011e6064 expression: fix the issue that incorrect result for query that uses an AND operator on floats (#15927) 2020-04-21 14:38:18 +08:00
0d5a83162b util: build right range when where stmt only have string column. (#16645) 2020-04-21 14:08:26 +08:00
2a69052cf1 test: fix unit test and make test running serially. (#16525) 2020-04-20 17:44:26 +08:00
31ff075d4f expression: fix wrong flen for case when function (#16352) 2020-04-17 23:04:03 +08:00
bdbdbaed7f expression: fix the issue that incorrect result for a predicat… (#16014) 2020-04-17 22:43:32 +08:00
2b03cf28dd util: fix wrong range when building from string column is true. (#16135) 2020-04-17 22:24:05 +08:00
b8494e7a11 expression: support disable expression pushdown based on store… (#16389) 2020-04-17 14:53:25 +08:00
eeffe1e26f planner, expression: set correct for ctx in isNullRejected (#16430) 2020-04-16 16:24:57 +08:00
ac8785a978 expression: fix wrong constant propagation with the collation (#16227) 2020-04-16 14:10:10 +08:00
080a94d9e6 test: fix tests which may fail because of concurrency (#16446) 2020-04-16 11:36:31 +08:00
62c1c8d893 expression: fix builtinRegexpSharedSig unexpected error when input rowNum is empty (#16405) 2020-04-15 22:56:58 +08:00
d26875db7e expression: fix error PushDownNot for contiguous NOT (#16108) 2020-04-15 17:52:14 +08:00
7e71069ffa planner: fix generated column causes a server crash (#16376) 2020-04-15 14:54:32 +08:00
5f0585415b expression: forbidden illegal mix collate (#16277) 2020-04-15 14:41:27 +08:00
ca7082abbd expression: mark random_bytes() as deferred function (#16367) 2020-04-15 13:33:27 +08:00
96d96ceb73 executor: fix unexpected error in union stmt. (#16073) 2020-04-08 09:45:55 +08:00
4d05eaf9e5 expression: fix wrong inference of collation (#15914) 2020-04-01 15:54:14 +08:00
25f15c7a5c planner: get enforced merge join with empty join keys when contains conflicted collation (#15841) 2020-03-31 22:13:42 +08:00
548bb6bbe1 expression: add a collation test for IndexMergeJoin (#15853) 2020-03-31 20:37:12 +08:00
17530c4059 expression: Support collate for user session variable (#15449) 2020-03-31 11:29:07 +08:00
af787a3acf util: consider negative zero float for Hash Join (#15837) 2020-03-30 17:39:12 +08:00