449587a085
*: using standard error to replace terror ( #19425 )
2020-09-08 20:15:51 +08:00
05809a9cf2
Revert "expression, types: fix decimal precision for SUM function ( #19592 )" ( #19882 )
2020-09-08 18:21:18 +08:00
726341146b
expression, types: fix decimal precision for SUM function ( #19592 )
2020-09-07 16:23:54 +08:00
9c344ce66e
types: fix bug of converting enum and set ( #19699 )
2020-09-03 23:43:49 +08:00
c56f318349
expression: support %r and %T format for STR_TO_DATE() ( #19474 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
Co-authored-by: Zhang Jian <zjsariel@gmail.com >
2020-09-02 09:53:00 +08:00
7690e292c1
expression: fix incorrect implementation in builtinRealIsFalseSig ( #19658 )
...
* fixup
* fixup
2020-09-01 19:58:24 +08:00
e24d1455af
types, executor: refine convertToMysqlEnum when src is of type Enum ( #19640 )
...
* types, executor: refine convertToMysqlEnum when src is of type Enum
* remove useless code
* refine
* add a TODO for collation
* add test for collate
* remove useless code
* address comment
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-01 19:35:12 +08:00
ba60cf5a69
charset: implement utf8_unicode_ci and utf8mb4_unicode_ci collation ( #18776 )
2020-08-27 23:20:48 +08:00
f5fa3e7aa7
executor: fix index join error when join key is ENUM or SET ( #19235 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-24 20:50:51 +08:00
bb675c0d63
types: check KindNull / KindMinNotNull / KindMaxValue when comparing datums ( #19259 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-24 16:47:52 +08:00
30636c5fdf
types: compare nil by type assertion in datum value setting ( #19225 )
2020-08-18 11:47:51 +08:00
759e00c2fa
types: nil/null should be regarded as value instead of type ( #19157 )
2020-08-14 14:42:29 +08:00
0448a54875
types: fix wrong hash key for decimal ( #19131 )
...
* types: fix wrong hash key for decimal
* fix bug
* fix & add test
* address comments and add test
* add test
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-13 19:29:17 +08:00
2b05ffd6e8
expression: cast json_extract as bool ( #18948 )
...
* fix mocktikv json expression
* fix issue 12233
* remove MysqlJSONS function
* add test case and fix literal to bool
* go fmt
* add more test case
* update test case
2020-08-07 16:53:48 +08:00
4170007fb6
*: remove mysql.TypeDecimal ( #18787 )
2020-07-29 15:26:22 +08:00
cc0b6f1aec
types: fix STR_TO_DATE handling for %h, %r ( #18171 ) ( #18428 )
2020-07-22 19:01:32 +08:00
127ad504b2
table: optimize add record used in lightning ( #18102 )
2020-06-24 15:18:01 +08:00
bca31eaf62
*: refine the behavior of StrToInt and StrToFloat and support convert JSON to date, time and timestamp ( #17902 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2020-06-22 11:59:24 +08:00
b4836c1062
driver: fix auto_random keyword regex ( #17915 )
2020-06-11 16:39:21 +08:00
f87e2b1710
types: ToString() should not return error for datum null ( #17894 )
...
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com >
Co-authored-by: crazycs <crazycs520@gmail.com >
2020-06-10 17:10:31 +08:00
7fc1ca3174
types/json: fix JSON comparison for int and float ( #17622 )
2020-06-05 16:05:58 +08:00
09af066c54
*: fix a bug that collation does not work for enum and set ( #17635 )
2020-06-05 12:14:42 +08:00
f1b21b562a
types: match MySQL behavior with datetime delimiters ( #17376 )
2020-05-29 11:05:35 +08:00
959ad888b0
types: fix StrToDate handling of %h and %p ( #17395 )
2020-05-28 17:37:13 +08:00
c928a53cd2
types: Introduce fuzzing by adding 3 fuzzers ( #17250 )
...
* Added 3 fuzzers
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com >
2020-05-19 20:29:39 +08:00
ac30f5322e
mockstore: introducing embedded unistore ( #17156 )
2020-05-18 17:28:44 +08:00
a1763c1b6e
executor: fix memory corrupt in COUNT/JSON_OBJECTAGG/GROUP_CONCAT ( #17106 )
2020-05-13 16:58:20 +08:00
079939f808
expression: NotNullFlag is not set correctly for some expression ( #16954 )
2020-05-06 19:29:10 +08:00
26e208b9df
executor, types: copy enum/set instead of refer the underlying data ( #16858 )
2020-04-28 13:00:40 +08:00
7b25ce0d94
*: support auto_random table option ( #16750 )
2020-04-24 23:14:51 +08:00
62e4d588a8
Makefile: add unconvert to inspect unnecessary type convert ( #16549 )
2020-04-22 23:01:59 +08:00
d49573e050
*: refine some logs with incorrect collation ( #16275 )
2020-04-22 15:23:48 +08:00
94011e6064
expression: fix the issue that incorrect result for query that uses an AND operator on floats ( #15927 )
2020-04-21 14:38:18 +08:00
bdbdbaed7f
expression: fix the issue that incorrect result for a predicat… ( #16014 )
2020-04-17 22:43:32 +08:00
72f4576742
executor, types: set correct collate in newValueExpr ( #16323 )
2020-04-15 17:38:59 +08:00
7cc2c70041
expression: implement vectorized evaluation for `builtinJSONSe… ( #15859 )
2020-04-15 10:38:01 +08:00
1c73deca59
ddl: add syntax for setting the cache step of auto id explicitly. ( #15409 )
2020-04-10 15:57:51 +08:00
c561d5aa99
*: remove useless conversions and omit some types ( #16262 )
2020-04-10 00:23:06 +08:00
ff47c8d05f
parser: apply feature-ids special comments to auto_random ( #15412 )
2020-04-02 20:19:39 +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
1ff32ace27
executor: use MySQL compatible truncate error code ( #15422 )
2020-03-18 12:28:43 +08:00
74626823f4
expression: fix collate bug in constant propagation ( #15066 )
2020-03-13 22:55:23 +08:00
8db471ff1f
expression: fix the issue that casting a string to a real number is not compatible with MySQL ( #15321 )
2020-03-12 16:15:32 +08:00
ab17254e3b
executor: fix error message when inserting an invalid value for type datetime ( #15220 )
2020-03-12 12:04:03 +08:00
9f0736ee8b
errno: move the error code from the parser/mysql to tidb/errno ( #15277 )
2020-03-11 15:40:21 +08:00
55b3e1110c
*: reduce the allocation caused by Datum.Copy ( #15219 )
2020-03-09 17:38:46 +08:00
e58cef5718
expression,types: wrap ParseUint error with stack ( #15188 )
2020-03-09 14:28:45 +08:00
8835f8efca
*: set charset and collate for string literals correctly ( #15156 )
2020-03-06 17:01:46 +08:00
0ddfe0716f
*: fix datum's collation behavior to build correct logical ranges ( #14963 )
2020-03-05 22:34:46 +08:00
1771fff928
expression: make field and findInSet support collation ( #15100 )
2020-03-04 18:12:53 +08:00