Commit Graph

2581 Commits

Author SHA1 Message Date
3337405dd0 expression, parser: add built-in func is_uuid (#30318) 2021-12-07 02:47:55 +08:00
d3c6045f63 *: replace compareDatum by compare (#30421) 2021-12-06 20:41:56 +08:00
9c62e96633 expression: migrate test-infra to testify for flag_simplify_test.go (#30407) 2021-12-06 12:17:55 +08:00
28446605c2 expression: fix tidb can't alter table from other-type with null value to timestamp with NOT NULL attribute (#29664) 2021-12-03 15:57:54 +08:00
9aa756336e executor: avoid sum from avg overflow (#30010) 2021-12-03 11:09:55 +08:00
6475e8949c *: add warn log for stale read (#30340) 2021-12-02 17:59:54 +08:00
004382d020 expression: don't append null when param for char() is null (#30236) 2021-12-02 17:37:54 +08:00
4947cf1f59 expression: fix wrong result of greatest/least(mixed unsigned/signed int) (#30121) 2021-12-02 13:11:53 +08:00
7746b6b70a test: fix incorrect regexp pattern during migrating test (#30080) 2021-12-02 05:51:53 +08:00
13b7a2d0ef ddl: disallow change columns from zero int to time (#25728) 2021-11-30 22:09:53 +08:00
083be6d859 expression: fix flen for timestamp_add (#30213) 2021-11-30 17:57:54 +08:00
b1ca2ebd60 expression: Support GBK for builtin function AesEncrypt. (#29946) 2021-11-30 01:01:52 +08:00
3baa95ff38 planner: implement aggregation eliminate optimize trace (#30114) 2021-11-29 18:21:53 +08:00
eb7672fc48 *: replace compareDatum by compare and ignore warnings is collate is empty (#30105) 2021-11-29 17:53:53 +08:00
352811dfc4 types: fix wrong str_to_date() microseconds with leading zeros are not converted correctly (#30122) 2021-11-29 16:29:52 +08:00
3dc09f8ba6 expression: add ut config (#30156) 2021-11-26 19:51:51 +08:00
51b7a1915f expression: fix misuse of datumsToConstants in GBK test (#30072) 2021-11-26 14:13:51 +08:00
bccc21bd8b cmd, expression: fix convert binary string to gbk (#30004) 2021-11-26 13:19:51 +08:00
75f6225948 expression, util/codec: fix wrongly eliminated conditions caused by HashCode() collision (#30120) 2021-11-25 19:33:51 +08:00
e15b76875d expression : prevent function DATE_ADD/SUB_STRING_XXX pushed down to TiFlash (#30154) 2021-11-25 17:43:51 +08:00
8dc59e684a planner: make clear for MaybeOverOptimized4PlanCache (#29782) 2021-11-25 16:42:29 +08:00
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