adb3071c90
*: refine the attribute definition of types.Time and types.Dur… ( #11672 )
2019-08-14 11:30:40 +08:00
ff71c0c746
expression: fix last_day incompatible with mysql ( #11704 )
2019-08-10 19:12:38 +08:00
768f61f52f
expression: handle builtin time getInterval from Decimal\Real ( #11479 )
...
All tests passed, auto merged by Bot
2019-07-30 17:16:52 +08:00
5c35082f6a
expression: handle builtin add_date/sub_date func overflow ( #11472 )
2019-07-27 18:22:21 +08:00
be431dad25
make time func now related unit tests stable ( #11412 )
2019-07-24 16:33:29 +08:00
ca70d74a28
executor, expression: fix current_timestamp/now not consistent… ( #11342 )
2019-07-23 17:02:24 +08:00
d977edf8a3
Function SUBTIME ADDTIME should return NULL with a warning if… ( #11262 )
2019-07-19 19:49:40 +08:00
8d2c9be461
CONVERT_TZ should return NULL if its arguments are invalid. ( #11176 )
2019-07-12 16:33:01 +08:00
785922d923
expression: fix the behavior of DATE_SUB ( #10607 )
2019-06-13 20:36:35 +08:00
7deedf8418
expression: fix issue that period_diff is not compatible with MySQL 8.0 ( #10383 )
2019-05-14 17:40:54 +08:00
6a3a73a52d
*: add_date can return mysql.Time ( #9830 )
2019-05-14 10:06:10 +08:00
37e824134f
expression: check if period is valid in period_add ( #10380 )
2019-05-09 11:11:02 +08:00
2133b06541
expression: fix cast(-num as datetime) to return null instead of error ( #10368 )
2019-05-08 16:58:18 +08:00
826c2991b5
handle unsigned hour overflow ( #10074 )
2019-04-09 16:46:51 +08:00
b4cc3e4893
fix str_to_date func compatible issues 9773 ( #9819 )
2019-03-21 15:00:29 +08:00
9187e3d9e5
Fix last_day function ( #9746 )
2019-03-15 15:31:13 +08:00
b76b2da8f6
types: fix incompatible issue for builtin function str_to_date ( #9693 )
2019-03-14 13:04:44 +08:00
133a1ee8f8
expression: fix week func format ( #9685 )
2019-03-13 15:25:11 +08:00
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