Commit Graph

363 Commits

Author SHA1 Message Date
2bea06ed23 util, types: don't let SPM be affected by charset (#23161) 2021-03-12 22:39:10 +08:00
7ea78e772e types: fix clustered keyword regexp (#23264) 2021-03-12 08:02:54 +08:00
bc572f3b19 types: fix clustered keyword to hint regexp (#23247) 2021-03-11 15:54:54 +08:00
c1b8347425 statistics: add a test case which builds global-stats on different versions of partition-stats (#23231) 2021-03-11 14:14:58 +08:00
aa82a038f1 types: fix the bug about the wrong query result for decimal type (#22507) 2021-03-09 15:54:55 +08:00
4218f2836b expression: fix wrong error info (#22760) 2021-03-07 19:40:34 +08:00
e83a8f6563 executor: fix unexpected NotNullFlag in case when expr ret type (#23102) 2021-03-05 16:44:55 +08:00
db62e341fd executor: fix wrong key range of index scan when filter is comparing year column with NULL (#23079) 2021-03-04 16:04:54 +08:00
953de47119 types: fix err check (#23008) 2021-03-04 10:34:54 +08:00
6f250b625e *: fix a bug that collation is not handle for text type (#23045) 2021-03-03 22:04:54 +08:00
b5a9076aea *: new secondary index value format (#20220) 2021-03-03 21:16:54 +08:00
602bcd2e40 *: fix some structcheck lint warnings (#22983) 2021-03-02 23:12:54 +08:00
550ca8eaeb statistics: enables global-level stats to be generated in fast analyze mode (#22931) 2021-03-01 16:40:50 +08:00
31c13d6e38 expression: fix bugs in builtinfunction ArithmeticMinusInt logic (#22426) 2021-02-26 13:00:54 +08:00
b74dfaf810 mockstore: move mockstore/cluster to tikv/mockstore/cluster (#22856)
Signed-off-by: disksing <i@disksing.com>
2021-02-22 15:42:16 +08:00
a3a4a6c4da executor: add new format specifier(%# %@ %.) for str_to_date expression (#22790) 2021-02-19 14:57:27 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
17a65ab98b statistics: refactor the statistics package use the RestrictedSQLExecutor API (#22636) 2021-02-03 13:28:57 +08:00
ca93c7fc16 types: convert string to MySQL BIT correctly (#21310) 2021-01-18 12:17:58 +08:00
d1d5cc433e time: fix parse datetime won't truncate the reluctant string (#22232) 2021-01-07 14:52:16 +08:00
c7165bc518 executor, planner: ON DUPLICATE UPDATE can refer to un-project col (#14412)
Co-authored-by: Kenan Yao <cauchy1992@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-01-06 19:03:51 +08:00
51794e9d30 *: rewrite origin SQL with default DB for SQL bindings (#21275) 2021-01-06 16:28:29 +08:00
7c81719568 types: refine JSON conversion, throw err when object/array convert to integer/float/decimal (#21826) 2021-01-04 18:48:23 +08:00
b112c3c9a3 types: Add a limitation about float data type (#20929) 2020-12-23 16:47:59 +08:00
0370fbf6a3 types: Regard TypeNewDecimal as not a hasVariantFieldLength type. (#21849) 2020-12-23 12:59:48 +08:00
dd0dc46d5e expression: fix type infer for tidb's builtin compare(least and greatest) (#21150)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2020-12-22 14:58:31 +08:00
b232a23e7a expression, types: fix datetime and year comparison error (#20233) 2020-12-18 17:19:30 +08:00
25a94e5f2c expression:truncate decimal value instead of return error (#21691) 2020-12-18 13:46:05 +08:00
b25f62dce6 expression: fix compatibility behaviors in time_format with MySQL (#21559) 2020-12-17 15:16:57 +08:00
608cc51d27 types: report error for json object with key length >= 65536 (#21779) 2020-12-16 16:53:35 +08:00
b0d9934fb0 types: fix compare float64 with float64 in json (#21709)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-15 12:12:55 +08:00
dfbb69d33d types: fix compare object json type (#21703)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-14 17:55:54 +08:00
06cd92e05f types, expression: handle uint64 correctly in JSON (#21621) 2020-12-12 21:45:12 +08:00
6f3f126dee types: fix restore error for backslash (#21666)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-11 18:27:21 +08:00
43d9293be8 types, expression, codec: agg JSON values (#21656) 2020-12-11 17:31:52 +08:00
f0c6fa9c25 expression: fix compatibility of extract day_time unit functions (#21601)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-11 17:13:21 +08:00
579022cdf3 expression, types: fix unexpected result from TIME() when fsp digits > 6 (#21652) 2020-12-11 16:47:52 +08:00
8a3705ee40 expression: change the round rule for approximate value to round to nearest even (#21324) 2020-12-10 11:34:52 +08:00
3b1e1027fd expression, json: fix converting from string to decimal (#21592) 2020-12-09 17:23:20 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
7e3074afa3 ddl: support column type change from JSON type to other types (#21266) 2020-12-04 00:14:48 +08:00
0c3c4c588a *: Let binary literal can be convert to enum and set (#20789) 2020-12-02 20:15:18 +08:00
83c1652633 expression, executor: allow insert strings with overflowed trailing spaces (#20987) 2020-11-24 18:06:16 +08:00
afb2ab95f0 table: fix zero date in different sqlmode (#20206) 2020-11-24 12:46:51 +08:00
4897ecdba2 planner, type: fix AggFieldType error when encouter unsigned and sign type (#21062) 2020-11-24 11:33:24 +08:00
49a1527893 expression: adjust int constant when compare with year type (#21099) 2020-11-19 19:04:53 +08:00
99bdecc966 ddl: fix float precision larger than 53 (#20458) 2020-11-13 14:08:36 +08:00
a81c89f89b ddl: support column type change from date time type to other types (#20778) 2020-11-12 19:06:42 +08:00
ef57bdbbb0 *: fix somes bugs related to the clustered index and the new collation (#20934) 2020-11-12 15:18:15 +08:00
e608e4bca9 ddl: fix the enum's default value where create table (#20849) 2020-11-11 20:18:17 +08:00