Commit Graph

60 Commits

Author SHA1 Message Date
84750e8550 expression: handle ENUM in builtin function Values() (#9225) 2019-02-12 11:48:55 +08:00
b3bdc5d797 expression: handle Float32 for builtin function Values() (#9215) 2019-01-30 12:13:00 +08:00
d9e02b76dd expression: remove redundant "errors.Trace()" in "expression" package (#8609) 2018-12-07 12:20:31 +08:00
6efbd17b03 expression: fix "values" function in non-insert statement (#8019) 2018-11-05 11:51:11 +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
ee0d4d6c64 executor: print arguments in execute statement in log files (#7684) 2018-10-09 15:24:25 +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
2fba9931c7 *: remove DatumRow (#7165) 2018-07-26 19:42:58 +08:00
9cf670a324 *: cut off duration.fsp in chunk (#7043) 2018-07-17 15:36:27 +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
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
81652dbeef *: remove returned value isNull in Row methods. (#5131) 2017-11-17 11:12:41 +08:00
1aa2a69f92 expression: remove type assertion on types.DatumRow. (#5005) 2017-11-07 14:17:53 +08:00
55529a5d26 expression: make in more powerful. (#4969) 2017-11-06 15:36:53 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
c4f29301eb expression: rewrite in behavior. (#4813) 2017-10-28 14:36:21 +08:00
1abe79529b expression: fix values null value issue (#4923) 2017-10-27 00:07:26 -05:00
5e441ad883 expression: fix #4884, insert NULL on duplicate key by values function (#4891) 2017-10-25 03:07:38 -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
3d6ec2a362 expression: correct the signature building of Values (#4814) 2017-10-18 21:23:07 -05: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
60626912a7 expression, plan: remove "foldable" from "baseBuiltinFunc" (#4759) 2017-10-12 04:03:54 -05:00
b4ad894b0a expression, plan: do come code clean and make golint happy (#4681) 2017-09-29 10:35:47 +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
069cc8b222 expression: open new expression framework by default (#4595) 2017-09-22 15:29:42 +08:00
296f09438d expression: rewrite builtin func values (#4491) 2017-09-12 11:13:49 +08:00
4295780cae *: rewrite builtin function ROW && remove Datum.KindRow (#4480) 2017-09-11 23:57:21 +08:00
0fd962f297 expression, plan: rewrite builtin funcs setvar, getvar (#4479) 2017-09-11 16:18:33 +08:00
55bbc41069 expression: adjust getFunction context.Context param position (#4400) 2017-09-01 16:03:19 +08:00
f0aad43fec expression: change isDeterministic to canBeFolded (#4393) 2017-08-31 20:35:13 +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
f18f4b40b2 expression: rewrite builtin function: BIT_COUNT (#4332) 2017-08-28 15:16:14 +08:00
f5fd467f46 *: change terror.ErrorEqual to Error.Equal, which is more effetive (#4217) 2017-08-17 20:06:48 +08:00
b23901b187 *: rewrite function IN to DNF (#4174) 2017-08-15 14:28:43 +08:00
0bf26a1df7 expression: Refactor return sig.setSelf(sig), errors.Trace(c.verifyArgs(args)) (#4123) 2017-08-11 14:12:45 +08:00
0d9ea869c2 *: fix set/get var race (#3913)
* *: fix set/get var race
2017-07-27 16:08:20 +08:00
6b94f4433a plan, expression: move constant fold to NewFunction (#3868) 2017-07-25 01:22:45 +08:00
fb75f5a1c6 expression, util: implement new cast built-in function signatures (#3266) 2017-05-23 15:43:52 +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
3b82630ff4 builtin bit_count (#3087) 2017-04-23 21:05:22 +08:00