Commit Graph

128 Commits

Author SHA1 Message Date
e7da7d4f95 *: change fsp from int8 to int (#28347) 2022-01-27 13:59:12 +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
9063d3b837 table: set the datum collation correctly in CastValue() (#30931)
close pingcap/tidb#30930
2021-12-22 16:05:47 +08:00
ab35db14a6 *: refactor encoding and uniform usages (#30288) 2021-12-20 15:27:46 +08:00
9d4da4f3fb *: query failed after add index / timestamp out-of-range (#28424) (#29323) 2021-12-10 17:49:57 +08:00
c835349972 table, parser: check for invalid GBK characters before insertion (#28814) 2021-11-22 13:29:49 +08:00
412dd4f763 parser: refactor Parse() interface to make it extensible (#28975) 2021-10-21 10:56:45 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
680de922ed *: fix license header (#28085) 2021-09-17 22:26:41 +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
3cda7d0a72 *: insert of invalid timestamp succeeded (#26584) 2021-08-05 18:03:12 +08:00
31403ad0a1 executor: fix unexpected behavior when casting invalid string to date (#26784) 2021-08-04 10:05:06 +08:00
12c606f4d4 *: improve 'insert into select' performance by optimize utf8 charset check (#26432) 2021-08-03 09:49:06 +08:00
06a0ad373c executor: avoid unnecessary string EqualFold() comparisons (#25822) 2021-07-23 14:46:15 +08:00
6329c86533 ddl: fix cast date as timestamp will write invalid value (#26362) 2021-07-20 23:19:34 +08:00
3132b59402 table: improve error message for incorrect utf8 value (#25087) 2021-06-21 15:48:53 +08:00
284da110b2 executor: fix cast function will ignore tht error for point-get key construction (#22869) 2021-03-09 18:14:55 +08:00
6f250b625e *: fix a bug that collation is not handle for text type (#23045) 2021-03-03 22:04:54 +08:00
c3e54962d1 executor: fix a bug that can not insert null into a not null column in the empty SQL mode (#21237)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-25 11:44:00 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
afb2ab95f0 table: fix zero date in different sqlmode (#20206) 2020-11-24 12:46:51 +08:00
04729d2b25 executor: fix wrong default zero value for year type (#20824) 2020-11-04 16:12:01 +08:00
6342fa6a50 ddl: fix corrupted default value for bit type column (#18036) 2020-10-04 12:59:40 +08:00
94704d0cc4 expression: incorrect error message of inserting enum & set (#19380) 2020-09-11 15:48:24 +08:00
22a18d1dd2 table: remove CastValues function (#18785)
Co-authored-by: Arenatlx <ailinsilence4@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-01 09:58:52 +08:00
xhe
773b29102d charset: add missing ascii check(#18193) 2020-06-27 15:34:26 +08:00
127ad504b2 table: optimize add record used in lightning (#18102) 2020-06-24 15:18:01 +08:00
c19018e06f rename 'trancates' to 'truncates' (#17968) 2020-06-16 19:55:29 +08:00
d66d5028da *: support plain insert on cluster index table (#17674) 2020-06-05 13:23:43 +08:00
3176b00c02 executor: fix the issue that UNIQUE constraint on boolean column results in an incorrect result in a comparison (#17245) 2020-05-20 13:55:18 +08:00
1417ba2288 *: fix a bug that don't handle truncate properly for virtual generated column (#17217) 2020-05-14 20:57:55 +08:00
242ce93302 Revert "expression: support NO_ZERO_DATE sql_mode" (#16740) 2020-04-23 13:37:19 +08:00
db7c13537a expression: support NO_ZERO_DATE sql_mode (#16053) 2020-04-22 23:27:01 +08:00
a0c7407846 executor: set length and frac when we change zero to decimal t… (#16518) 2020-04-18 00:01:37 +08:00
3ced6bc9ac dml: support default expression cache when insert (#15216) 2020-03-19 10:51:22 +08:00
0ddfe0716f *: fix datum's collation behavior to build correct logical ranges (#14963) 2020-03-05 22:34:46 +08:00
41142266b2 *: use SetString() for string instead of SetBytes() (#14989) 2020-03-02 15:48:10 +08:00
0bbf1d954c *: implement the sequence allocator logic. (#14829) 2020-02-26 15:45:38 +08:00
eb12799152 *: Collation should be set accordingly when setting string datum (#14757) 2020-02-20 23:01:53 +08:00
007c0e6656 *: support default expression value for sequence (#14589) 2020-02-13 18:50:33 +08:00
0bab73adf5 *: use new row-format in tidb (#12634) 2020-01-02 22:34:39 +08:00
86ae838d5a planner/core: disallow using hidden column in insert statement (#14150) 2019-12-26 16:08:55 +08:00
13400ee89a table, executor: extract two functions for ShowCreateTable/DB (#13907) 2019-12-05 10:47:52 +08:00
dcbb5a162a table: format table error code and error message (#13233) 2019-12-03 19:59:39 +08:00
37ea7d44a5 table: refactor code simplify string comparison (#13762) 2019-11-27 17:03:23 +08:00
a1dc0477a5 types: add error code for package types (#13300) 2019-11-26 19:45:14 +08:00
36f0f37b40 expression, planner: remove some fields from `expression.Colum… (#12573) 2019-10-29 15:48:26 +08:00
933f4a5c21 ddl: fix incorrect origin default bit value in ColumnInfo (#12168) 2019-09-30 10:40:11 +08:00
adb3071c90 *: refine the attribute definition of types.Time and types.Dur… (#11672) 2019-08-14 11:30:40 +08:00