Commit Graph

190 Commits

Author SHA1 Message Date
158ba1a1d9 *: enable part revive for all code (#36703) 2022-08-01 14:02:06 +08:00
d4dc6b54c6 *: enable staticcheck and prealloc on nogo (#35486)
ref pingcap/tidb#35345
2022-06-22 22:00:37 +08:00
1bf64c60f4 *: Refactor FieldType structure (#33569)
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
f012766b53 executor: raise error when text data is too long (#33345) 2022-03-26 15:04:33 +08:00
bc267f5856 expression: support push down tikv supported functions (#32193)
ref pingcap/tidb#31846
2022-02-11 12:51:36 +08:00
a8223c0bf1 expression: treat AllowedPacketOverflowed as err when enable strict sql mode and in insertStmt|updateStmt|deleteStmt and without ignore (#29962)
close pingcap/tidb#29708
2022-01-11 19:17:42 +08:00
9ffeff2857 types: convert to new charset before inserting to blob or json column (#31031)
close pingcap/tidb#30690
2021-12-30 21:35:50 +08:00
d543b60464 parser: add IsValid() to Encoding to speed up string validation for UTF-8 (#30937)
close pingcap/tidb#30936
2021-12-22 18:19:48 +08:00
f1e587704c expression: fix wrong retType for reverse function (#30829)
close pingcap/tidb#30809
2021-12-21 12:19:46 +08:00
ab35db14a6 *: refactor encoding and uniform usages (#30288) 2021-12-20 15:27:46 +08:00
e15e457f3e expression: change the log level of an confusing log from warn to debug (#30484) 2021-12-08 19:07:57 +08:00
bccc21bd8b cmd, expression: fix convert binary string to gbk (#30004) 2021-11-26 13:19:51 +08:00
3d267514d5 expression: cast charset according to the function's resulting charset (#29905) 2021-11-24 17:07:50 +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
7889f445a6 expression: convert charset by wrapping internal builtin function (#29736) 2021-11-17 15:37:47 +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
ad85341857 charset: support builtin function convert (#28943) 2021-11-01 16:56:51 +08:00
8fb4ce573c expression: support GBK charset for builtin function ascii() (#29071) 2021-10-27 16:32:49 +08:00
836b10200b expression: support GBK charset for builtin function to_base64() (#29054) 2021-10-25 23:36:48 +08:00
26ab066b59 expression: add builtin func length() for gbk (#29011) 2021-10-21 18:20:46 +08:00
acb3a89634 expression, parser: fix the result of trim3Args (#28936) 2021-10-19 21:00:43 +08:00
9f8c053d06 parser: refactor encode and decode (#28917)
* refactor encoding

* add a simple test case for encoding

Co-authored-by: tangenta <tangenta@126.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2021-10-19 15:50:33 +08:00
42001503cb expression, parser: support GBK charset for builtin function lower() (#28869) 2021-10-15 18:02:41 +08:00
ac9dcbb53f expression: support GBK charset for builtin function upper() (#28817) 2021-10-15 15:29:27 +08:00
bd68045ffb expression: support lower function pushed down to TiFlash (#28376) 2021-10-14 15:05:27 +08:00
e96100b5b5 expression: support GBK charset for builtin function hex() (#28305) 2021-10-13 15:23:28 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
e8f4e47798 expression: no-op implementation for load_file to support Navicat (#28216) 2021-10-11 16:33:26 +08:00
651c47dbb8 expression: fix substring_index() gets wrong result for uint64 index. (#28098) 2021-09-18 13:22:43 +08:00
83445d626e expression: fix some problems related to flen (#27677) 2021-09-15 14:18:42 +08:00
01e1ceda08 expression, executor: fix license header (#28050) 2021-09-15 10:56:42 +08:00
90626b8a49 ddl, expression: fix some string functions' flen and refine error message for expression index (#27376)
* done

Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2021-08-20 21:13:58 +08:00
af66129b1e go.mod: update parser (#27339) 2021-08-18 19:30:00 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
3ac7914b7e expression: make locate function consider collation (#27079) 2021-08-11 20:29:16 +08:00
6ab9d7dbcd expression: support Oracle translate function (#26408) 2021-07-29 16:18:17 +08:00
7229416bae functions: fix some string function has wrong collation and flag (#23835) 2021-04-07 12:42:32 +08:00
b8c91d14ef expression, executor: fix runtime panic in WEIGHT_STRING function when the length of binary is too large (#22251) 2021-01-11 11:47:27 +08:00
46fa162889 expression: do not report error when got unknown locale (#21818)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-17 13:44:05 +08:00
5c19b8236f expression: handle tp.flen overflow in to_base64 function (#20947) 2020-12-15 16:44:54 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
027105ff1b expression: fix the wrong behavior of char function (#17598)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-19 12:11:54 +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
d823deb583 expression: fix case-sensitive problem for function INSTR and LOCATE (#16792) 2020-05-09 18:00:05 +08:00
9d391949cd expression: refactor logic about checking illegal mix collations (#16866) 2020-04-29 16:40:56 +08:00
62e4d588a8 Makefile: add unconvert to inspect unnecessary type convert (#16549) 2020-04-22 23:01:59 +08:00
5e8706a1f6 util/collate: remove CollatorOption (#15472)
`CollatorOption` was used to specify the `PadLen` which aims to support
"PADDING" attribute of the collations. But now it is not needed anymore,
since TiDB actually implements "PADDING" by removing trailing spaces.
2020-03-19 15:16:29 +08:00
20703ee8a6 expression: return binary charset and collation if there is no string-type argument in DeriveCollationFromExprs (#15250) 2020-03-10 17:26:46 +08:00