Commit Graph

586 Commits

Author SHA1 Message Date
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00
1be6d2478f expression,util/types: update time Add() implementation (#4267) 2017-09-08 00:17:15 -05:00
fc209cb1df *: rewrite hex and bit literals (#4415) 2017-09-07 16:28:24 +08:00
f380a746c9 expression: rewrite builtin function: EXTRACT (#4456) 2017-09-07 15:48:45 +08:00
9f040b850c expression: rewrite builtin function: INTERVAL (#4421) 2017-09-07 00:02:49 +08:00
c1384a26b7 executor, types: format output (#4418) 2017-09-06 16:00:03 +08:00
0b04d1c6c7 expression: rewrite builtin JSON functions under the new framework. (#4367) 2017-09-06 14:42:35 +08:00
e3cbcad807 should use time.Since instead of time.Now().Sub (#4445) 2017-09-06 12:15:24 +08:00
e7e40193f9 distsql,store/tikv: fix analyze table OOM (#4399) 2017-09-05 20:56:44 +08:00
75230f9f1d types, plan: return ErrInvalidDefault when date type column option of create table statement has a now() default value (#4430) 2017-09-05 17:02:47 +08:00
778b221d2e Support client specified collation (#4409) 2017-09-05 10:08:30 +08:00
f3134bede9 codec: use reference instead of value copy of "[]types.Datum" (#4408) 2017-09-04 11:30:47 +08:00
e6985a2f0f expression, types: add NumberToDuration function, use it when cast int as duration, and check whether date is zero and returns error. partically fix #4340 (#4387) 2017-08-31 15:24:51 +08:00
2ae9abefad expression: partial fix #4340, support date time format when parse duration (#4380) 2017-08-30 19:43:42 +08:00
271f0c0338 executor, types: format output (#4372)
Escape special chars and handle quote marks.
2017-08-30 10:34:50 +08:00
e6283e9fc6 parser: fix #4354, support empty bit-value literal syntax b'' (#4370) 2017-08-30 10:03:34 +08:00
c50bfbce0b *: rewrite builtin function: STR_TO_DATE (#4357) 2017-08-30 08:30:57 +08:00
62c8d39d93 expression: fix float literals and binary literals (#4365) 2017-08-29 06:44:52 -05:00
c9b62fbdda expression: add json into builtin if function. (#4203) 2017-08-29 17:32:10 +08:00
71694b0597 types: fix EvalDuration not support time format in int #4341 (#4349) 2017-08-29 00:09:17 +08:00
ea29a1c30d expression: Support more types when getting default flen and decimal (#4236) 2017-08-28 02:26:07 -05:00
882f341db1 types: remove useless code in datum.go (#4335) 2017-08-28 11:09:30 +08:00
8c6998387a expression, json: fix cast json to other types. (#4265) 2017-08-23 20:16:50 +08:00
31819a8dcb parser, expression: implement builtin function: LAST_DAY (#4290) 2017-08-23 16:34:35 +08:00
8f91590a2b fix: avoid 'binary BINARY' for special field type (#4272)
When parsing DML like 'ALTER TABLE t MODIFY COLUMN a binary', there will
be a node parsed as '... binary BINARY...'. That is wrong, the right result should be '... binary ...'
2017-08-23 09:42:43 +08:00
d0beee7aa0 expression: rewrite builtin function: COALESCE (#4157) 2017-08-22 19:34:34 +08:00
ff34a46446 store/tikv: implement MVCCStore interface using leveldb backend (#3970) 2017-08-22 03:48:42 -05:00
38908aeb1e protocol: add the framework of x protocol, and cmdline arguments. (#3618) 2017-08-22 14:53:17 +08:00
7d6c79d09f util: remove context cancel debugger (#4226) 2017-08-18 18:55:03 +08:00
2e7db3da83 Add release version info (#4218)
Add version information in tidb-server's log, tidb-server -V output and mysql-client prompt.
So it is easier to get the release information.
2017-08-17 21:19:51 +08:00
f5fd467f46 *: change terror.ErrorEqual to Error.Equal, which is more effetive (#4217) 2017-08-17 20:06:48 +08:00
fa1bc4559f expression: rewrite builtin function: TIME (#4192) 2017-08-16 16:09:59 +08:00
94c5420a86 expression: rewrite builtin function: TRUNCATE (#4179) 2017-08-16 12:53:10 +08:00
5f70f63a52 util: add JSON in fieldTypeMergeRules (#4189) 2017-08-16 11:43:57 +08:00
16a5f74ad7 expression: rewrite builtin function: TIME_FORMAT (#4051) 2017-08-16 11:12:05 +08:00
e41d2cf6ae expression: rewrite builtin function: IS_IPV4, IS_IPV6, IS_IPV4_COMPAT, IS_IPV4_MAPP (#4144) 2017-08-15 15:01:37 +08:00
b23901b187 *: rewrite function IN to DNF (#4174) 2017-08-15 14:28:43 +08:00
0d945aa425 *: Add git branch name in tidb_version and starting log (#4168) 2017-08-14 17:15:47 +08:00
a88ebb1cf6 *: use structure to store user identity (#4078)
*: use structure to store user identity
2017-08-14 03:37:36 -05:00
56cb978587 expression, plan: rewrite builtin function: IF (#4137) 2017-08-11 19:43:06 +08:00
5044ad053e types/mydecimal_test: add tests for round with different round_mode (#4139) 2017-08-11 19:22:55 +08:00
6f2b1a2b07 expression, util: refine aggregation func avg (#4145) 2017-08-11 17:10:01 +08:00
dcf4cbb2f1 expression: rewrite builtin string function: REVERSE (#4042) 2017-08-11 16:21:35 +08:00
b0d488fa8f expression: fix json ci. (#4140) 2017-08-10 21:17:06 +08:00
c51d0f57ed *: support JSON in new expression architecture (#4089) 2017-08-10 15:56:53 +08:00
68f58dc38b expression: rewrite builtin function: AES_ENCRYPT, AES_DECRYPT (#4085) 2017-08-10 10:19:47 +08:00
1eebb87156 ddl: remove backgroud worker, use delete-range to speed up something. (#3993) 2017-08-09 16:59:25 +08:00
f1da1cdb82 expression, types: fix issue #3923, builtin function TimeDiff compability and bug. (#4018)
expression, types: fix issue #3923, builtin function TimeDiff compability and bug.
2017-08-09 11:48:28 +08:00
3d7c74f1a4 expression, plan: rewrite builtin arithmetic function: PLUS (#3858) 2017-08-07 22:02:31 +08:00
fafd205f42 *: rewrite ifnull (#4050) 2017-08-07 13:24:48 +08:00