e7da7d4f95
*: change fsp from int8 to int ( #28347 )
2022-01-27 13:59:12 +08:00
28446605c2
expression: fix tidb can't alter table from other-type with null value to timestamp with NOT NULL attribute ( #29664 )
2021-12-03 15:57:54 +08:00
62e96720b6
variable: add support for timestamp ( #29447 )
2021-11-10 00:49:05 +08:00
94e30df8e2
parser: fix compiling, add unit tests ( #28700 )
2021-10-11 23:15:25 +08:00
d88e64c194
executor: add stale read compatibility unit test for each cases ( #28146 )
2021-09-17 16:46:42 +08:00
7755d25aba
*: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers ( #27198 )
2021-08-16 18:52:00 +08:00
e9488ce2ee
*: implement tidb_bounded_staleness built-in function ( #24328 )
2021-05-18 14:15:40 +08:00
c8bc701170
*: misc cleanups to variable package ( #24507 )
2021-05-11 13:23:38 +08:00
bca31eaf62
*: refine the behavior of StrToInt and StrToFloat and support convert JSON to date, time and timestamp ( #17902 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2020-06-22 11:59:24 +08:00
41142266b2
*: use SetString() for string instead of SetBytes() ( #14989 )
2020-03-02 15:48:10 +08:00
eb12799152
*: Collation should be set accordingly when setting string datum ( #14757 )
2020-02-20 23:01:53 +08:00
d006443194
type: encapsulate Time API ( #14288 )
2019-12-31 12:41:09 +08:00
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