adb3071c90
*: refine the attribute definition of types.Time and types.Dur… ( #11672 )
2019-08-14 11:30:40 +08:00
129c0afdc6
executor, infoschema: fix display of on update CURRENT_TIMESTAMP with decimal ( #11480 )
2019-08-02 16:50:10 +08:00
ca70d74a28
executor, expression: fix current_timestamp/now not consistent… ( #11342 )
2019-07-23 17:02:24 +08:00
915b879aae
expression: relocate getSystemTimestamp() not to be called unnecessarily ( #10073 )
2019-04-09 10:57:27 +08:00
d9e02b76dd
expression: remove redundant "errors.Trace()" in "expression" package ( #8609 )
2018-12-07 12:20:31 +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
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
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00
96e44a80f8
executor, expression: calculating the default value for datetime should consider the time zone ( #7655 )
2018-09-10 16:11:07 +08:00
fc89a6421a
expression,ddl: fix fraction part handle of current_timestamp ( #7355 )
2018-08-14 13:20:01 +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
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
47cbc0bfce
*: remove varsutil package, make Systems a private member of SessionVars ( #5544 )
2018-01-25 01:43:07 -06:00
5db9ac2506
types,util/chunk: refactor Time for Chunk. ( #5571 )
2018-01-09 10:12:27 +08:00
62433663e5
util/types: change types path ( #5007 )
...
* util/types: change types path
2017-11-04 10:37:14 -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
a60bbd9560
expression: refactor "helper.go" ( #4593 )
2017-09-22 18:54:04 +08:00
dff73cc6e4
*: Modify the Makefile for go vet ( #3900 )
2017-07-30 23:02:52 -05:00
ea05bf088d
expression: default value from "timestamp" session variable is in UTC timezone ( #3544 )
2017-06-27 15:07:42 +08:00
379914a5af
*: fix timestamp column data and index inconsistent involving timezone ( #3497 )
2017-06-20 15:22:50 +08:00
9f17a88377
fix some typo in comments ( #2943 )
2017-03-29 08:55:49 +08:00
235a7979b9
sessionctx/varsutil: refactor system variable ( #2359 )
...
Make varsutil package manage all the system variable get and set method.
2017-01-03 11:15:50 +08:00
453a95ce8c
*: merge packages of evaluator and expression. ( #2322 )
2016-12-26 12:35:29 +08:00
26e5c0c867
*: move evaluator's helper to expression package. ( #2291 )
2016-12-23 11:34:52 +08:00
68eb8e567e
*: remove old code
2016-02-29 11:40:32 +08:00
3ba316fe55
optimizer, executor: use index range
2015-11-25 21:44:55 +08:00
49bc1c8d9c
executor: fix bugs, pass more tests.
2015-11-18 17:19:43 +08:00
c01af56fc3
executor, optimizer: new executor and optimizer implementation
2015-11-13 23:24:10 +08:00
ebfb3377c8
*: Address comment and code cleanup
2015-10-26 15:06:08 +08:00
10d90f2637
*: parser returns DataItem for stringLiteral instead of raw string.
2015-10-23 11:36:07 +08:00
3442b777ca
Merge remote-tracking branch 'origin/master' into shenli/wrap-data
2015-10-19 19:17:01 +08:00
06e7e891af
Merge pull request #414 from pingcap/goroutine/rename
...
*: Rename mysqldef to mysql
2015-10-19 16:35:29 +08:00
29369dba8f
*: Rename mysqldef to mysql
2015-10-19 16:26:43 +08:00
365e957538
Merge remote-tracking branch 'origin/master' into shenli/wrap-data
2015-10-19 15:34:18 +08:00
cee3cec506
expression: Address comment.
2015-10-19 14:21:45 +08:00
83086b57a7
*: Address comment.
2015-10-19 14:11:41 +08:00
16836344a5
*: fix aggregate arg check panic.
2015-10-18 14:33:50 +08:00
4fa9744359
Merge pull request #404 from pingcap/qiuyesuifeng/refactor-on-where-ident
...
Refactor where field eval by using fromIdentVisitor.
2015-10-17 15:02:20 +08:00
ef5c0141d8
*: merge master and fix conflict.
2015-10-17 11:31:05 +08:00
894a009f40
expression: tiny clean up.
2015-10-17 11:05:20 +08:00
80a3c14e61
expression: aggregate function can't have agg in arg
2015-10-16 21:43:39 +08:00
8faca5e3f9
expression: add refer field for Ident
2015-10-16 19:09:28 +08:00
7c05c9d969
*: use IsQualifiedName
2015-10-16 19:07:53 +08:00
1509618ffd
*: Pass all the test
2015-10-09 22:11:00 +08:00
1b95334f87
expression: fix import and BaseVisitor
2015-09-24 16:29:29 +08:00
7b0a3b7b74
expression: rewrite mention function to use visitor pattern.
2015-09-24 16:16:44 +08:00