Commit Graph

48 Commits

Author SHA1 Message Date
d9e02b76dd expression: remove redundant "errors.Trace()" in "expression" package (#8609) 2018-12-07 12:20:31 +08:00
6bed56db1f expression: support JSON return type in case expression (#8355) 2018-11-21 14:07:05 +08:00
29f14d4178 *: change default charset and collation from 'utf8 utf8_bin' to 'utf8mb4 utf8mb4_bin' (#7965) 2018-11-09 16:32:21 +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
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
06021c7cfe remove types.Row interface (#7170) 2018-07-27 13:45:03 +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
5445e17fac *: fix in-compatible behavior when modify value from Navicat GUI (#6105) 2018-03-22 15:38:27 +08:00
0553deeb42 *:improve code readability and unified aliases (#5997) 2018-03-15 10:52:36 +08:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
fc6376981d *: remove GetSessionVars() in expression evaluation (#5683) 2018-01-22 11:04:32 +08:00
970e5b5684 *: replace JSON with BinaryJSON (#5460) 2017-12-21 15:20:17 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -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
83ace4f748 expression: return NULL when error is not nil (#4749) 2017-10-11 03:38:03 -05:00
b4ad894b0a expression, plan: do come code clean and make golint happy (#4681) 2017-09-29 10:35:47 +08:00
baee1bb864 expression, types, plan: remove the usage of "TypeClass" completely (#4654) 2017-09-27 12:39:44 +08:00
7943d0e843 expression, types: remove the usage of "TypeClass" in "builtin_compare.go" (#4649) 2017-09-26 23:33:56 +08:00
f89db5b6ec expression, types: export "evalTp" to "EvalType" and move it to package "types" (#4626)
* expression, types: export "evalTp" to "EvalType" and move it to package "types"

* add source file

* change "ETJSON" to "ETJson"
2017-09-26 11:25:27 +08:00
45bdd69cde *: support signature push down. (#4495) 2017-09-25 18:58:42 +08:00
069cc8b222 expression: open new expression framework by default (#4595) 2017-09-22 15:29:42 +08:00
55bbc41069 expression: adjust getFunction context.Context param position (#4400) 2017-09-01 16:03:19 +08:00
c9b62fbdda expression: add json into builtin if function. (#4203) 2017-08-29 17:32:10 +08:00
f564022e59 expression: set pb code for signatures. (#4358) 2017-08-29 13:45:31 +08:00
f02a615bed expression: remove useless error return (#4347) 2017-08-28 20:34:30 +08:00
ea29a1c30d expression: Support more types when getting default flen and decimal (#4236) 2017-08-28 02:26:07 -05:00
f289c9bd25 expression: fix date cmp date (#4294) 2017-08-24 14:50:40 +08:00
1eed36b25e expression: refine built-in func ifnull and if (#4301) 2017-08-24 13:33:52 +08:00
2df9456310 bug fix: flag of builtin 'IFNULL' 's result is not consistent with mysql (#4158) 2017-08-21 20:13:20 +08:00
6917e8588e expression: fix type inference of function CASE (#4219) 2017-08-17 20:37:07 +08:00
90b98f7870 expression: rewrite builtin function: CASE (#4160) 2017-08-17 11:48:54 +08:00
6733b6f75b expression: rewrite builtin function: NULLIF (#4170)
* rewrite nullif() to if()
2017-08-15 17:19:39 +08:00
56cb978587 expression, plan: rewrite builtin function: IF (#4137) 2017-08-11 19:43:06 +08:00
0bf26a1df7 expression: Refactor return sig.setSelf(sig), errors.Trace(c.verifyArgs(args)) (#4123) 2017-08-11 14:12:45 +08:00
fafd205f42 *: rewrite ifnull (#4050) 2017-08-07 13:24:48 +08:00
56044645ee expression: add setSelf for all built-in functions (#3218) 2017-05-11 13:51:03 +08:00
ee312bfd71 expression: Fix code style according to goword (#3123)
ref https://github.com/pingcap/tidb/issues/3120
2017-04-25 23:35:45 +08:00
f6547abc7a expression: refactor function. (#2551) 2017-01-25 20:27:54 +08:00
73f1fa9144 expression: implement functionClass and builtinFunction for some funcs. (#2384) 2017-01-04 21:12:49 +08:00
45e841b663 expression: move some funcs out of builtin_other. (#2362) 2016-12-31 23:15:57 +08:00
453a95ce8c *: merge packages of evaluator and expression. (#2322) 2016-12-26 12:35:29 +08:00
ffb8fddf87 expression: move builtin to builtin package, cannot run 2015-09-23 14:40:24 +08:00
0d46df9532 expression: rename package and remove import 2015-09-21 18:02:27 +08:00
6f531c4dab expression: move files in expressions to expression
No modification at all.
2015-09-21 17:42:09 +08:00