c83a0ceb95
config: add a config item to control whether TiDB check the mb4 character in utf8 ( #9175 )
2019-01-25 14:39:30 +08:00
98b96cc769
executor: speedup unit tests by spliting them into separate suites ( #8618 )
2018-12-24 21:37:12 +08:00
1c4d2d9890
table: check non-BMP characters and return error when the charset is utf8 and sql mode is strict mode ( #8738 )
2018-12-19 17:52:47 +08:00
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
6e7d75299d
test: refine test ( #7414 )
2018-08-16 17:05:59 +08:00
eaef520634
types,executor: treat decimal truncate as warning in update ( #5801 )
2018-02-08 15:55:52 +08:00
62433663e5
util/types: change types path ( #5007 )
...
* util/types: change types path
2017-11-04 10:37:14 -05:00
6f9457e373
executor: use tearDownTest instead of defer ( #4499 )
2017-09-12 01:02:41 -05:00
b4f20e6f0b
util/testkit: refine testkit ( #3177 )
2017-04-29 23:20:49 +08:00
9cb61b047d
column: fix false negative utf8 check ( #2979 )
...
unicode 'u\fffd' is used to represent utf8 error when range a string, but itself is a valid utf8 character.
2017-03-31 21:31:42 +08:00
7aa024c9a0
*: add UTF8 check global variable. ( #2899 )
2017-03-23 08:56:21 +08:00
d85a4cb1c8
table/column: disable utf8 check. ( #2895 )
...
When old row has invalid utf8 value and the data doesn't change, we should not fail to update.
So temporarily disable utf8 check until we can handle this problem.
* *: change log level
* *: do not truncate
2017-03-20 17:24:59 +08:00
cca10bab58
table: check and truncate UTF8 string in CastValue. ( #2819 )
2017-03-15 11:26:19 +08:00
79be7364a9
*: fix reset stmt ctx when there are multiple statements ( #2613 )
2017-02-08 21:13:22 +08:00
1b8051d3c5
*: set and use Flags to properly handle truncate error ( #2212 )
2016-12-12 11:45:58 +08:00
6ef340fb32
util/types: properly handle truncate error for string to float or int. ( #2186 )
...
When converting from string to float or int, use StatementContext to handle truncate error.
Also directly convert a string to Int instead converting to float first, then convert float to int.
2016-12-07 19:42:46 +08:00
e288b3563f
types/util: use statement context to handle truncate error. ( #2147 )
...
use statement context to handle truncate error in ConvertTo MyDecimal.
2016-12-01 19:11:07 +08:00