bfb39a2826
[SQL][Function] Add replace() function ( #4347 )
...
replace is an user defined function, which is to replace all old substrings with a new substring in a string, as follow:
mysql> select replace("http://www.baidu.com:9090 ", "9090", "");
+------------------------------------------------------+
| replace('http://www.baidu.com:9090 ', '9090', '') |
+------------------------------------------------------+
| http://www.baidu.com : |
+------------------------------------------------------+
2020-08-20 09:28:53 +08:00
fdd65c50c4
[Bug] fix mem_tracker use-after-free & add UT for it ( #3899 )
2020-06-20 19:08:53 +08:00
ba7d2dbf7b
[Function] Support utf-8 encoding in instr, locate, locate_pos, lpad, rpad ( #3638 )
...
Support utf-8 encoding for string function `instr`, `locate`, `locate_pos`, `lpad`, `rpad`
and add unit test for them
2020-05-22 14:34:26 +08:00
a656a7ddd4
Support append_trailing_char_if_absent function ( #3439 )
2020-05-09 08:59:34 +08:00
94b3a2bd50
[Bug] Fix string functions not support multibyte string ( #3345 )
...
Let string functions support utf8 encoding
2020-05-08 12:52:46 +08:00
4a7a88ede1
[LSAN] Fix some memory leak detected by LSAN ( #3326 )
2020-04-22 22:59:44 +08:00
0d1e28746e
[Function] Support null_or_empty function ( #2977 )
...
It returns true if the string is empty or NULL. Otherwise it returns false.
2020-03-01 17:35:45 +08:00
89c7234c1c
Support starts_with (str, prefix) function ( #2813 )
...
Support starts_with function
2020-01-21 14:09:08 +08:00
f071d5a307
Support ends_with function ( #2746 )
2020-01-14 22:37:20 +08:00
a9e8113b82
Fix heap-buffer-overflow in split_part() function in StringFunctions ( #1482 )
2019-07-15 23:00:37 +08:00
98bd4b4565
Add string function split_part ( #1451 )
2019-07-10 09:47:33 +08:00
b2a022b348
Add money_format function ( #1064 )
2019-04-29 18:31:24 +08:00