7072052316
expression,types: improve str_to_date builtin function compatibility ( #9617 )
2019-03-09 15:15:31 +08:00
eb2578bc42
expression: fix date_add interval month,year diffs from mysql ( #8988 )
2019-02-11 19:52:58 +08:00
ec833bc4d2
*: fix some lints produced by golangci-lint ( #8999 )
2019-01-16 16:44:49 +08:00
d9e02b76dd
expression: remove redundant "errors.Trace()" in "expression" package ( #8609 )
2018-12-07 12:20:31 +08:00
6e27de255b
expression: fix incorrect date arithmitical with negative interval ( #8523 )
2018-12-04 10:34:47 +08:00
2f6639d12b
expression: add builtin function tidb_parse_tso ( #8385 )
2018-11-28 22:37:44 +08:00
5374ff8935
expression,planner: support non-deterministic functions (e.g., now) in the plan cache ( #8105 )
2018-11-01 23:53:32 +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
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
5baedaa21c
expression, types: fix some corner case when parsing string to datetime ( #7701 )
2018-10-08 10:35:52 +08:00
29441950a3
*: write system timezone into mysql.tidb in bootstrap stage. ( #7638 )
2018-09-14 22:15:00 +08:00
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00
6fb1a637fb
expression: Fix some datetime related cases that is inconsistent with MySQL ( #7636 )
2018-09-07 14:38:43 +08:00
8f1b494055
expression: fix missing microsecond for timestamp ( #7418 )
2018-08-17 14:40:49 +08:00
06021c7cfe
remove types.Row interface ( #7170 )
2018-07-27 13:45:03 +08:00
7c18d24933
executor, store: fixed daylight saving time issue ( #6823 )
...
Thank you for working on TiDB! Please read TiDB's [CONTRIBUTING](https://github.com/pingcap/tidb/blob/master/CONTRIBUTING.md ) document **BEFORE** filing this PR.
## What have you changed? (mandatory)
During coprocessor dag task, it first uses timezone `name`, if non-empty, to get legitimate timezone variable. To achieve this, we need to push down such data into tikv which leads to change the logic of building pushdown request. The logic I mentioned mainly resides in `executor` package.
I change `timeZoneOffset` to `zone` and add second return parameter `name string`. The intentioned of doing this to adopt the convention of `time` package.
For the same purpose, I change `GetTimeZone` to `Location`. As you can see, in `time` package, timezone was bind to `Location`.
## What are the type of the changes (mandatory)?
- Bug fix (non-breaking change which fixes an issue)
## How has this PR been tested (mandatory)?
unit-test
integration-test will be added shortly
2018-07-16 18:15:19 +08:00
877d0d4d3d
*: fix a bug occurred when insert into time column ( #6451 )
...
* *: fix a bug when insert decimal or decimal-like string into time col
2018-05-09 10:52:30 +08:00
76932395c3
expression: make inferring of decimal for unix_timestamp be more consistent with MySQL ( #6233 )
2018-04-09 11:40:24 +08:00
faeaccc35e
executor:Improve the aesthetics of code review ( #6138 )
2018-03-26 22:19:49 +08:00
ba04a342c5
*:fix some ineffassign to improve GoReport Result ( #5901 )
2018-02-25 14:32:20 +08:00
12c87929b8
*:fix some golint && ineffassign && misspell to improve GoReport Result ( #5867 )
2018-02-23 19:31:05 +08:00
4e1a114e68
*: move package context to sessionctx ( #5890 )
2018-02-22 18:03:38 +08:00
469b246965
types,expression: make ConvertToTime unaffected by location ( #5741 )
2018-02-01 06:22:59 -06:00
24333b3b29
*: don't record binlog when statement rollback ( #5699 )
2018-01-25 06:50:57 -06:00
47cbc0bfce
*: remove varsutil package, make Systems a private member of SessionVars ( #5544 )
2018-01-25 01:43:07 -06:00
97ae04a37c
expression: consider time zone for builtin function curtime/sysdate/curdate ( #5548 )
2018-01-04 16:40:09 +08:00
8b15cb52b7
*: move StatementContext to its own package. ( #5177 )
2017-11-22 00:11:14 +08:00
62433663e5
util/types: change types path ( #5007 )
...
* util/types: change types path
2017-11-04 10:37:14 -05:00
64bc8cb6cb
expression: remove "self" field in "baseBuiltinFunc" completely ( #4766 )
...
* expression: remove "self" field in "baseBuiltinFunc" completely
* address comment
2017-10-13 04:55:25 -05:00
60626912a7
expression, plan: remove "foldable" from "baseBuiltinFunc" ( #4759 )
2017-10-12 04:03:54 -05:00
e488bcc23d
expression: some builtin functions can be folded ( #4756 )
...
* expression: unix_timestamp, utc_timestamp can be folded
* add mores exprs
* add non-cacheable functions
2017-10-12 01:18:26 -05:00
51a6e6fc48
*: fix ineffectual assignments #4713 ( #4746 )
2017-10-11 21:26:03 -05:00
7d2804e43c
*: check sc.IgnoreZeroInDate when parsing string or number to date/datetime/timestamp ( #4732 )
2017-10-10 23:38:53 -05:00
3f4bdf6150
expression: rewrite unit test for Minus and Plus ( #4691 )
...
* expression: rewrite unit test for Minus and Plus
* move code
2017-09-30 11:47:26 +08:00
459c4691b5
expression: remove useless code ( #4672 )
2017-09-28 16:03:04 +08:00
376a7ddbdd
util/types,expression: fix parseDatetime for 11111111111 and 20170118.999 ( #4273 )
2017-09-21 14:55:05 +08:00
1006dab277
expression: rewrite builtin function ADDTIME, SUBTIME ( #4333 )
2017-09-15 14:55:10 +08:00
27f2594f31
expression: rewrite builtin function: ADDDATE, SUBDATE ( #4504 )
2017-09-14 19:16:37 +08:00
b812f324c3
expression: rewrite builtin function TIMEDIFF ( #4496 )
2017-09-14 15:45:04 +08:00
a2723bfda3
expression: rewrite builtin function MAKETIME ( #4396 )
2017-09-13 15:27:55 +08:00
d4bfcf0272
expression: rewrite builtin function: CONVERT_TZ ( #4463 )
2017-09-11 15:48:50 +08:00
3cd019b39c
expression: rewrite builtin function: FROM_UNIXTIME ( #4454 )
2017-09-08 17:01:28 +08:00
5f00460cf8
expression, plan: rewrite builtin func get_format ( #4422 )
2017-09-05 15:09:22 +08:00
6ad9d35219
*: rewrite builtin function: CURRENT_TIME ( #4360 )
2017-09-05 14:42:47 +08:00
0513ab378d
expression: rewrite builtin function: TIME_TO_SEC, SEC_TO_TIME ( #4342 )
2017-09-04 22:36:04 -05:00
55bbc41069
expression: adjust getFunction context.Context param position ( #4400 )
2017-09-01 16:03:19 +08:00
f0aad43fec
expression: change isDeterministic to canBeFolded ( #4393 )
2017-08-31 20:35:13 +08:00
861d844732
expression: rewrite builtin function: UNIX_TIMESTAMP ( #4297 )
2017-08-31 15:50:17 +08:00
9ae2639077
expression: NOW() should be folded in constant folding stage ( #4385 )
2017-08-31 12:23:11 +08:00