Commit Graph

248 Commits

Author SHA1 Message Date
35829101ae expression: support bit for addtime & subtime (#6316) 2019-03-11 16:50:35 +08:00
ae91405e61 sessionctx/variable: fix panic when set variable='' (#9533) 2019-03-04 12:28:05 +08:00
560e8cfe57 *: sleep 0 when retry whole transaction (#9454) 2019-03-02 13:16:28 +08:00
9da174902a expression: fix timezone for timestamp constant when converting expression to pb (#9473) 2019-02-27 10:41:28 +08:00
8d4db9fb0e expression: refactor builtin function RAND to be compatible with MySQL (#9387) 2019-02-22 17:22:09 +08:00
ed7bb00417 planner, expression: support builtin function NAME_CONST (#9261) 2019-02-19 10:02:46 +08:00
0081e17b02 expression, planner: support builtin function benchmark (#9252) 2019-02-13 19:53:28 +08:00
84750e8550 expression: handle ENUM in builtin function Values() (#9225) 2019-02-12 11:48:55 +08:00
0b363f1712 expression: add builtin function JSON_QUOTE (#7832) 2019-02-12 10:57:09 +08:00
3d614e0965 planner: enable function any_value in aggregation if ONLY_FULL_GROUP_BY is set (#9255) 2019-02-10 10:03:40 +08:00
b3bdc5d797 expression: handle Float32 for builtin function Values() (#9215) 2019-01-30 12:13:00 +08:00
bf5a0b4e6d expression: fix precision when casting float to string (#9137) 2019-01-29 09:59:16 +08:00
6dcba1fd90 expression: support JSON for builtin function COALESCE (#9087) 2019-01-28 11:33:57 +08:00
36176be874 *: improve syntax error code & message compatibility (#9103) 2019-01-23 10:46:29 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
786a9d54a3 expression,util/encrypt: add support for AES OFB mode (#8605) 2019-01-11 14:22:57 +08:00
0bc0f7d95b expression: throw "too big precision" error for CAST(AS TIME) (#8907) 2019-01-09 19:44:35 +08:00
39e1dfe4c2 parser: better error message #133 (#8950) 2019-01-07 12:14:46 +08:00
0c75c43010 fix typo (#8943) 2019-01-05 09:05:52 +08:00
94df8d1e30 *: ignore unknown hint and return warning instead of return a parser error (#8685) 2018-12-21 13:44:54 +08:00
d9e02b76dd expression: remove redundant "errors.Trace()" in "expression" package (#8609) 2018-12-07 12:20:31 +08:00
fde9c72af5 expression, executor: castStringAsTime returns null when sql_mode is not strict (#8516) 2018-12-06 23:12:55 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
2f6639d12b expression: add builtin function tidb_parse_tso (#8385) 2018-11-28 22:37:44 +08:00
cd7e27d6ee sessionctx: Set foreign_key_checks = OFF (#8358) 2018-11-26 21:57:30 +08:00
4149000582 planner/core, expression: don't pushdown filters contains set or get var (#8412) 2018-11-26 16:31:17 +08:00
64781daadd expression: make tests work with mysql sql_mode (#8278) 2018-11-13 10:24:03 +08:00
1082d5f1ac expression: fix wrong compare result of row (#8222) 2018-11-08 12:45:03 +08:00
6efbd17b03 expression: fix "values" function in non-insert statement (#8019) 2018-11-05 11:51:11 +08:00
fffb49bce6 *: modify tests to work with only-full-group-by on (#8163) 2018-11-05 10:41:48 +08:00
31f5abdad8 apply unit:day special logic on unit:hour for INTERVAL segment (#8146) 2018-11-02 14:14:57 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
9ec7515743 *: Add few error checks in tests, clean error messages and fix a misspell (#8101) 2018-10-31 18:50:43 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
b87b5f0898 expression: refine built-in func truncate to support uint arg (#8000) 2018-10-24 15:42:32 +08:00
708611d898 expression: add builtin json_keys (#7776) 2018-10-18 23:54:00 +08:00
19e4e2fa9f expression: MySQL compatible current_user function (#7801) 2018-10-16 13:53:07 +08:00
b3ef641f4b types: fix bug which Float type is not effective in AddDate & SubDate function (#7840) 2018-10-12 18:36:35 +08:00
f6f03db6dd expression: fix warning/error info of group_concat() (#7799) 2018-10-11 17:01:47 +08:00
aec4814ffe expression: fix painc on substring_index (#7806) 2018-10-08 22:07:06 +08:00
5baedaa21c expression, types: fix some corner case when parsing string to datetime (#7701) 2018-10-08 10:35:52 +08:00
9fd4072acb expression: add builtin function json_length (#7739) 2018-09-27 09:23:45 +08:00
e79bd946ed *: change package name from plan to planner (#7760) 2018-09-25 11:16:39 +08:00
038ac639ba expression: ECB/CBC modes with 128/192/256-bit key length for AES (#7425) 2018-09-23 22:09:02 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
5ad005b941 types,expression: Fix parse time from string (#7654) 2018-09-11 14:00:25 +08:00
30ae420242 expression: support builtin function json_contains_path (#7596) 2018-09-09 12:32:15 +08:00
6fb1a637fb expression: Fix some datetime related cases that is inconsistent with MySQL (#7636) 2018-09-07 14:38:43 +08:00
3f5bd3bb28 expression: support builtin function json_contains (#7443) 2018-09-07 12:45:13 +08:00
55565f1c93 expression: fix out of range error for intdiv (#7492) 2018-08-28 11:24:48 +08:00