Commit Graph

2560 Commits

Author SHA1 Message Date
b5ded48df9 *: replace compareDatum by compare and fix compare (#30090) 2021-11-24 17:31:51 +08:00
3d267514d5 expression: cast charset according to the function's resulting charset (#29905) 2021-11-24 17:07:50 +08:00
45836a6afe expression, sessionctx: support rand_seed1 and rand_seed2 sysvar (#29936) 2021-11-24 13:35:50 +08:00
8b028b899d *: replace compareDatum by compare (#30060) 2021-11-23 17:49:50 +08:00
8858592f7e expression: fix wrong flen for CastAsString funtion (#29563) 2021-11-23 17:03:51 +08:00
e47f0f5e80 expression: use encode buffer in to_binary, warp encrypt function with to_binary (#29950) 2021-11-22 19:33:49 +08:00
d711f18e0d types/datum.go: casting zero to enum should not change value (#29759) 2021-11-22 18:29:49 +08:00
8e93dc5edb expression: fix flen and decimal for ceil, floor, truncate, round (#29923) 2021-11-22 18:01:49 +08:00
c835349972 table, parser: check for invalid GBK characters before insertion (#28814) 2021-11-22 13:29:49 +08:00
bea1041845 expression: add builtin func bit_length() for gbk (#29531) 2021-11-22 10:37:49 +08:00
9ec688ebe8 expression, parser: support GBK for builtin function ord (#29527) 2021-11-18 14:33:47 +08:00
a62c37851d *: disable prepare cache when encounter cache table (#29702) 2021-11-18 14:05:47 +08:00
fef05d77d2 expression: fix wrong flen when cast decimal to string (#29687) 2021-11-18 10:13:47 +08:00
5f340b88c9 parser: format error message during parsing when meet a big value. (#28791) 2021-11-18 00:51:47 +08:00
7889f445a6 expression: convert charset by wrapping internal builtin function (#29736) 2021-11-17 15:37:47 +08:00
1660bf41ad expression: migrate test-infra to testify for expression (#29723) 2021-11-16 17:45:08 +08:00
8bdac02523 expression: Support GBK for builtin function AesDecrypt (#29157) 2021-11-15 17:01:07 +08:00
bdfd3f6974 *: refine CharsetAndCollation (#29561) 2021-11-12 17:41:05 +08:00
5bece67a9b expression: support GBK for builtin function Compress (#29170) 2021-11-12 17:07:05 +08:00
7c1097feed cmd, expression, parser: support GBK for builtin function char() (#29543) 2021-11-12 15:31:06 +08:00
e27af5e04f *: Replace the dbterror.ClassOptimizer.NewStd(mysql.ErrInternal) to a global constant. (#29593) 2021-11-12 13:19:06 +08:00
1eec13120d planner: lazy the subquery-more-than-1-row error after the insert duplicate is actually triggered (#29270) 2021-11-12 01:43:05 +08:00
184c3e3649 expression: migrate test-infra to testify for typeinfer_test.go (#29613) 2021-11-11 16:59:05 +08:00
62e96720b6 variable: add support for timestamp (#29447) 2021-11-10 00:49:05 +08:00
7227ef87da planner: fix the issue that set wrong length and width for Decimal and Real when using plan-cache (#29579) 2021-11-09 10:47:04 +08:00
a14ad60987 expression: support GBK for builtin function SHA1/SHA2 (#29544) 2021-11-08 17:07:05 +08:00
4df2c21a94 *: TIDB_DECODE_KEY(): Decode keys which only have a TableID (#29522) 2021-11-08 00:19:04 +08:00
f9730b698b expression: set maxScale for type Decimal if the scale is NotFixScale (#29521) 2021-11-07 17:15:04 +08:00
4b110036e1 expression: fix wrong result type for greatest/least (#29408) 2021-11-07 11:17:03 +08:00
2a6d43a760 expression: cleanup code (#29459) 2021-11-07 10:49:12 +08:00
fa8cbd5888 executor: fix wrong result for join with enum type (#29375) 2021-11-05 16:29:03 +08:00
ae65cae8d0 expression: fix wrong caseWhen function for enum type (#29454) 2021-11-05 15:27:06 +08:00
c0eda4b22a expression : improve error handle for EncodeString/Encode (#29451) 2021-11-05 14:31:02 +08:00
b74c13a898 *: run go fmt in go1.17 (#28784) 2021-11-05 12:33:03 +08:00
9409d54d81 expression: support builtin func password for GBK (#29202) 2021-11-05 12:17:02 +08:00
1b5b44047c expression, executor: fix unexpectedly modifying Flen and Decimal of CorrelatedColumn (#29457) 2021-11-05 07:49:02 +08:00
8ae81b3852 expression: fix different results for greatest when vectorized is off (#29438) 2021-11-04 19:17:02 +08:00
8368eeed24 *: remove useless parameter (#29392) 2021-11-04 12:39:02 +08:00
9d9915b8a6 expression: support GBK for builtin function Decode and Encode (#29315) 2021-11-03 20:17:01 +08:00
a95927f50a expression: Fix wrong result of microsecond function in vectorized (#29310) 2021-11-03 11:37:01 +08:00
ee2adfdc24 expression: Support GBK for builtin function MD5 (#29165) 2021-11-03 10:51:01 +08:00
318030adef expression: migrate tests to testify (#29276) 2021-11-02 23:16:52 +08:00
55a38a1c76 *: tiny clean up the RecordSet NewChunk() method (#29232) 2021-11-02 20:02:51 +08:00
088e68bee8 expression: support GBK charset for builtin function octet_length() (#29039) 2021-11-02 11:38:51 +08:00
4b6291f45c collation: change some builtin function to has ASCII repertoire (#29290) 2021-11-01 17:10:52 +08:00
ad85341857 charset: support builtin function convert (#28943) 2021-11-01 16:56:51 +08:00
a18977a93b expression: fix a bug caused by cast function signature wrong in aggregation push down (#28805) 2021-11-01 10:46:51 +08:00
5e7a871c3d planner: refine warnings about can't push down to TiFlash. (#29285) 2021-11-01 00:02:50 +08:00
0caac786a7 expression: support hour/minute/second/microSecond pushdown to tiflash. (#29269) 2021-10-31 09:14:50 +08:00
4bd41e9109 expression: push down CastTimeAsReal to TiFlash (#29274) 2021-10-31 09:02:50 +08:00