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
41142266b2
*: use SetString() for string instead of SetBytes() ( #14989 )
2020-03-02 15:48:10 +08:00
f2fa5c5fd5
expression: consider collations when comparing strings ( #14913 )
2020-02-25 15:06:37 +08:00
51a1323869
expression/types: check when insert binary literal ( #9829 )
2020-02-25 14:55:06 +08:00
eb12799152
*: Collation should be set accordingly when setting string datum ( #14757 )
2020-02-20 23:01:53 +08:00
0b709f7a45
ddl: ensure BLOB or TEXT index length is not zero ( #14803 )
2020-02-15 13:19:07 +08:00
4755a9b9ef
util: revert util/mathutil ( #14744 )
2020-02-13 11:33:04 +08:00
b23500ce06
types: fix decimal tests failed ( #14732 )
2020-02-11 22:44:05 +08:00
c93f03e018
types: add debug info to trace unit test ( #14714 )
2020-02-10 21:47:34 +08:00
b596a30e7d
types: add more info in test to investigate the fail cause ( #14676 )
2020-02-07 21:30:19 +08:00
87bbe7dcbe
types: Fix duration parser ( #14588 )
...
Signed-off-by: Iosmanthus Teng <myosmanthustree@gmail.com >
2020-02-07 14:30:44 +08:00
465af00b46
*: use new registrable terror ( #14606 )
2020-02-06 16:40:26 +08:00
4a63d416ba
types: add more info in test to investigate the fail cause ( #14640 )
2020-02-06 11:26:54 +08:00
ac8caad243
json: do not escape html special values ( #14518 )
2020-02-05 11:52:25 +08:00
ebc6a2d39d
*: add builtin aggregate function json_objectagg ( #11154 )
2020-02-04 21:41:55 +08:00
c46044f026
expression: optimize function IN using hashmap ( #13594 )
2020-01-31 19:58:53 +08:00
9d38c5467a
*: use 8 byte MysqlTime format ( #14278 )
2020-01-31 14:49:06 +08:00
24b6e615d7
types: rename local variable ( #14578 )
2020-01-27 19:29:52 +08:00
c88ceca2c4
types: fix parse DATETIME/TIME from string incompatible with MySQL ( #14547 )
...
Signed-off-by: Lonng <heng@lonng.org >
2020-01-23 16:53:36 +08:00
7efe9bf1bb
expression: fix builtin function 'round' ( #13985 )
2020-01-15 15:54:20 +08:00
667f2d7296
types: fix parse date inconsistent with MySQL ( #14405 )
...
Signed-off-by: Lonng <heng@lonng.org >
2020-01-09 11:49:15 +08:00
0a0e388148
types: implement restore function for KindMysqlDuration and KindMysqlTime ( #13242 )
2020-01-09 11:03:09 +08:00
9bf17e6c9e
executor: fix wrong behavior when ENUM column meet Aggregati… ( #14035 )
2020-01-07 11:26:26 +08:00
0bab73adf5
*: use new row-format in tidb ( #12634 )
2020-01-02 22:34:39 +08:00
d006443194
type: encapsulate Time API ( #14288 )
2019-12-31 12:41:09 +08:00
7e6ce6403d
types: add a interface to eval the memory cost of datum array ( #14185 )
2019-12-23 19:36:47 +08:00
ef7adeb50d
*: resort fields for reducing the memory allocated ( #14172 )
2019-12-23 17:10:09 +08:00
8cbacf0d7c
wasm: fix compile error for wasm ( #14160 )
...
Signed-off-by: 5kbpers <tangminghua@pingcap.com >
2019-12-23 15:17:46 +08:00
4d4678a4dd
types: Fix potential timezone related bugs caused by gotime.Local ( #13833 )
2019-12-20 22:38:25 +08:00
352adc5b00
executor: replace the flag CastStrToIntStrict with InSelectStmt ( #14115 )
2019-12-18 20:45:17 +08:00
ad1a15de7b
expression: implement vectorized evaluation for SubXXXAndYYY ( #13691 )
2019-12-18 06:12:55 -06:00
438d39ebcd
*: revert #10124 and remove sql mode PadCharToFullLength ( #14007 )
2019-12-17 15:25:06 +08:00
206cdbedfc
types: fix insert error when convert string to float ( #13716 )
2019-12-10 16:03:25 +08:00
7de620055d
expression: support expression reverse evaluation framework ( #13738 )
2019-12-05 11:50:09 +08:00
6b6a6982b4
expression: refactor JSON_QUOTE / JSON_UNQUOTE ( #13688 )
2019-12-05 11:23:31 +08:00
018d3c3be2
*: fix staticcheck errors in folder types ( #13773 )
2019-12-04 12:38:42 +08:00
9dbd475c73
types: refactor the code ( #13783 )
...
fix struct variable judgement issue.
remove useless value.
use make function default values.
2019-11-29 18:04:45 +08:00
0b9059162c
types: Fix potential timezone related bugs caused by gotime.Local ( #13752 )
2019-11-28 09:45:21 +08:00
a1dc0477a5
types: add error code for package types ( #13300 )
2019-11-26 19:45:14 +08:00
4b830aa7f6
*: Remove unused code ( #13674 )
2019-11-22 11:37:07 +08:00