35829101ae
expression: support bit for addtime & subtime ( #6316 )
2019-03-11 16:50:35 +08:00
2433e28d8d
*: fix ineffectual assignments and misspellings ( #9481 )
2019-02-28 19:25:07 +08:00
eb2578bc42
expression: fix date_add interval month,year diffs from mysql ( #8988 )
2019-02-11 19:52:58 +08:00
2b114f42d2
expression: fix some typos in the comments ( #9258 )
2019-02-10 10:47:46 +08:00
d9e02b76dd
expression: remove redundant "errors.Trace()" in "expression" package ( #8609 )
2018-12-07 12:20:31 +08:00
2f6639d12b
expression: add builtin function tidb_parse_tso ( #8385 )
2018-11-28 22:37:44 +08:00
87838774e6
types: let round take effect in converting float string to int string. ( #8279 )
2018-11-26 15:55:11 +08:00
31f5abdad8
apply unit:day special logic on unit:hour for INTERVAL segment ( #8146 )
2018-11-02 14:14:57 +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
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +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
5baedaa21c
expression, types: fix some corner case when parsing string to datetime ( #7701 )
2018-10-08 10:35:52 +08:00
b3cda9a7dc
expression: fix comments mistake ( #7713 )
2018-09-17 14:28:14 +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
db873d68f3
infoschema: set right columns in infoschema by differ type ( #7463 )
2018-08-24 13:15:21 +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
9cf670a324
*: cut off duration.fsp in chunk ( #7043 )
2018-07-17 15:36:27 +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
87ce884b2e
*:check max/min timestamp bound with timezone aware ( #6581 )
...
- mytime: max/min configure with UTC tz, convert to local tz during process starting, convert it to session tz before checking bound.
- time: so `check()`/`add()` need force pass `StatementContext` parameter.
- builtin_time: pass `StatementContext` from `b.ctx.sessionVars` into check/add.
- dump: also set timezone for StatementContext with UTC.
- *_test/mock: fix test case, make mock context with stmt TimeZone.
- add testcase for checkTimestamp and mytime convert timezone.
2018-05-24 15:27:38 +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
357d5df66b
remove useless alias ( #6473 )
2018-05-05 22:36:54 +08:00
f21483e6ed
expression: add Clone() for builtinFunc
2018-04-11 10:00:19 -05:00
76932395c3
expression: make inferring of decimal for unix_timestamp be more consistent with MySQL ( #6233 )
2018-04-09 11:40:24 +08:00
12cc2dbb20
parser,expression: decimal support for interval ( #6143 )
2018-03-27 03:08:56 -05:00
11616c46c0
types,expression: make 'invalid time format' error log more friendly ( #6069 )
2018-03-17 06:40:37 -05:00
0553deeb42
*:improve code readability and unified aliases ( #5997 )
2018-03-15 10:52:36 +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
88b8740724
*: avoid the generation of mysql.TypeNewDate ( #5705 )
2018-01-23 21:41:02 +08:00
fc6376981d
*: remove GetSessionVars() in expression evaluation ( #5683 )
2018-01-22 11:04:32 +08:00
5db9ac2506
types,util/chunk: refactor Time for Chunk. ( #5571 )
2018-01-09 10:12:27 +08:00
8b149c3323
Prealloc / collides with package name ( #5560 )
2018-01-05 19:15:54 +08:00
97ae04a37c
expression: consider time zone for builtin function curtime/sysdate/curdate ( #5548 )
2018-01-04 16:40:09 +08:00
f1e89cde19
*: use lower-case of github.com/sirupsen/logrus ( #5400 )
...
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus
* vendor: update pd
* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
12299b826a
expression: support date_format push down ( #5386 )
...
* support date_format push down
* add expr_to_pb test
* Update vendor
2017-12-13 13:29:01 +08:00
8b15cb52b7
*: move StatementContext to its own package. ( #5177 )
2017-11-22 00:11:14 +08:00
3f212a6133
expression: fix from_unixtime(val>MaxInt32) ( #5170 )
2017-11-21 16:53:43 +08:00
62433663e5
util/types: change types path ( #5007 )
...
* util/types: change types path
2017-11-04 10:37:14 -05:00
0306bb0070
tidb: support a plan cache for prepared statements ( #3956 )
...
* tidb: support a plan cache for prepared statements
2017-10-24 00:55:51 -05:00
ed7f68ca9b
*: Add Row interface ( #4859 )
2017-10-23 11:36:28 +08: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
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
7d2804e43c
*: check sc.IgnoreZeroInDate when parsing string or number to date/datetime/timestamp ( #4732 )
2017-10-10 23:38:53 -05:00
3e1d036336
*: log the caller of "terror.Log()" ( #4729 )
2017-10-10 11:26:43 +08:00
9c2ea17722
*: enforce errcheck in Makefile ( #4724 )
...
checks all errors and enable errcheck in Makefile
Fixes https://github.com/pingcap/tidb/issues/4668
2017-10-09 17:16:10 +08:00
ca05619cdf
expression: enforce error check ( #4716 )
2017-10-08 22:29:07 -05:00