52b7bfda0e
types: use switch table to save memory ( #9650 )
2019-03-12 22:04:22 +08:00
9891b3d546
executor, types: update tests for the description format of type year ( #9253 )
2019-03-11 15:56:58 +08:00
7072052316
expression,types: improve str_to_date builtin function compatibility ( #9617 )
2019-03-09 15:15:31 +08:00
893d1d5989
types: provide the default capacity for result of ParseDateFormat ( #9516 )
...
Prevents calling `runtime.growslice` too many times in a tight loop when
processing many datetime values.
2019-03-01 17:36:11 +08:00
c71a391839
types:add more unit tests in fsp ( #9378 )
2019-02-28 19:48:33 +08:00
2433e28d8d
*: fix ineffectual assignments and misspellings ( #9481 )
2019-02-28 19:25:07 +08:00
69472bd1a6
value_expr: add charset value for string expr ( #9302 )
2019-02-18 14:58:08 +08:00
469fa877d6
util/hack: define a MutableString type for function hack.String ( #9230 )
2019-02-12 12:30:40 +08:00
0b363f1712
expression: add builtin function JSON_QUOTE ( #7832 )
2019-02-12 10:57:09 +08:00
eb2578bc42
expression: fix date_add interval month,year diffs from mysql ( #8988 )
2019-02-11 19:52:58 +08:00
af99a0df5a
types: fix processing of "0000" value for year type ( #9250 )
2019-02-11 11:20:22 +08:00
c9b6adbbf5
types: remove not used CoerceDatum ( #9122 )
2019-01-20 09:50:08 +08:00
ec833bc4d2
*: fix some lints produced by golangci-lint ( #8999 )
2019-01-16 16:44:49 +08:00
82d2726300
planner, statistics: build new histogram using range information ( #7921 )
2019-01-14 20:33:36 +08:00
f20c849857
types: support sql_mode ALLOW_INVALID_DATES ( #9027 )
2019-01-14 19:34:22 +08:00
a9de2093e5
util/codec, types: add new method to get comparable hash key from MyDecimal ( #8930 )
2019-01-11 11:01:15 +08:00
68ddb7f0e6
*: fix the lower bound when converting numbers less than 0 to unsigned integers ( #8544 )
2019-01-10 16:04:07 +08:00
971629b947
parser: update parser version ( #8973 )
2019-01-08 13:39:34 +08:00
884db0ab3d
types: fix the incorrect behavior of "%y"/"%Y" for STR_TO_DATE() ( #8517 )
2019-01-08 12:37:30 +08:00
5e0a4f1db3
expression: return null when cast to huge binary type ( #8768 )
2018-12-29 17:16:46 +08:00
096bb68e6b
types: implement new Restore func of ValueExpr ( #8679 )
2018-12-17 15:07:41 +08:00
2088cafaca
types: restore the field length of a string typed parameter value to the original one ( #8656 )
2018-12-14 15:39:38 +08:00
64cd9b246f
planner,types: refactor the PR #8619 by using parser/types/FieldType.Clone() ( #8641 )
2018-12-12 10:23:57 +08:00
18b33fb425
expression,planner: fix to preserve the precision information of a timestamp-typed column in the plan cache ( #8619 )
2018-12-10 20:12:24 +08:00
c137cada68
*: change golang.org/x/net/context to standard context ( #8579 )
2018-12-05 13:54:00 +08:00
6e27de255b
expression: fix incorrect date arithmitical with negative interval ( #8523 )
2018-12-04 10:34:47 +08:00
741adcee43
types: impl ast.Recoverable for ValueExpr and ParamMarkerExpr ( #8519 )
2018-12-03 10:15:30 +08:00
e2e8d67819
table, executor: set a real enum as the default enum value ( #8469 )
2018-11-27 20:33:12 +08:00
1f46efe156
expression: add builtin function JSON_DEPTH ( #8347 )
2018-11-26 20:25:59 +08:00
87838774e6
types: let round take effect in converting float string to int string. ( #8279 )
2018-11-26 15:55:11 +08:00
e8d0f210d3
ddl: add check when build enum, set column ( #8003 )
2018-11-16 21:14:51 +08:00
3c0d0534f2
server,types: convert zero input correctly for column type year ( #8292 )
2018-11-14 15:25:08 +08:00
29f14d4178
*: change default charset and collation from 'utf8 utf8_bin' to 'utf8mb4 utf8mb4_bin' ( #7965 )
2018-11-09 16:32:21 +08:00
be1933eee8
types: move file const_test.go from the parser repository ( #8211 )
2018-11-07 15:58:04 +08:00
32b1dbd8d5
*: rename "github.com/pkg/errors" to "github.com/pingcap/errors" ( #8136 )
...
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
9ec7515743
*: Add few error checks in tests, clean error messages and fix a misspell ( #8101 )
2018-10-31 18:50:43 +08:00
3febc22811
expression: fix cast json to decimal bug. ( #8030 )
2018-10-29 17:02:32 +08:00
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
bd08b0bc70
*: make parser package dependency as small as possible ( #7989 )
2018-10-24 13:19:10 +08:00
25118db843
*: move ast.NewValueExpr to standalone parser_driver package ( #7952 )
...
Make the ast package get rid of the dependency of types.Datum
2018-10-19 19:37:55 +08:00
708611d898
expression: add builtin json_keys ( #7776 )
2018-10-18 23:54:00 +08:00
a2beedf88a
types: fix date time parse ( #7933 )
2018-10-18 17:55:58 +08:00
a7f78c7704
stats: fix histogram boundaries overflow error ( #7883 )
2018-10-17 14:45:50 +08:00
1bb15f14fa
admin: fix admin check table bug of byte compare ( #7887 )
...
* admin: remove reflect deepEqual
2018-10-16 18:24:58 +08:00
b3ef641f4b
types: fix bug which Float type is not effective in AddDate & SubDate function ( #7840 )
2018-10-12 18:36:35 +08:00
d7a59ec5a3
executor: remove some useless code and avoid some redundancy check ( #7639 )
2018-10-12 12:56:02 +08:00
5baedaa21c
expression, types: fix some corner case when parsing string to datetime ( #7701 )
2018-10-08 10:35:52 +08:00
9fd4072acb
expression: add builtin function json_length ( #7739 )
2018-09-27 09:23:45 +08:00
115c345593
expression: fix incorrect uniquote json escapse ( #7745 )
2018-09-20 16:22:40 +08:00
580e8573f4
infoschema: fill data length fields for tables ( #7657 )
2018-09-13 19:16:35 +08:00