Commit Graph

126 Commits

Author SHA1 Message Date
5f9fe27a14 expression: the quote function should treat null expr as NULL… (#11592) 2019-08-05 19:05:37 +08:00
593fb7def5 expression: add max_allowed_packet check in concat/concat_ws (#11137) 2019-07-16 15:56:51 +08:00
a090e6be29 Function INSERT should be NULL if any argument is NULL (#11237) 2019-07-15 11:33:06 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
37c128b64f expression: set correct return field type of builtin CONVERT() (#9305) 2019-03-31 15:11:20 +08:00
ba26012231 expression: using pingcap/log and unify the log format (#9507) 2019-03-14 19:05:27 +08:00
6398788f6b expression: function format incompatible (#9182) 2019-01-31 16:39:21 +08:00
477e252b35 expression: handle empty input and improve compatibility for format (#8797) 2019-01-02 14:13:08 +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
aec4814ffe expression: fix painc on substring_index (#7806) 2018-10-08 22:07:06 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
c625c27239 expression: check max_allowed_packet constraint for function insert (#7502) 2018-08-29 13:52:15 +08:00
5754f624c9 expression: fix builtin 'CharLength' for binary string input (#7410) 2018-08-20 12:08:23 +08:00
H
2fbd5e7a70 expression: handle max_allowed_packet warnings for repeat function. (#7181) 2018-08-17 23:39:47 +08:00
4624785b37 expression: handle max_allowed_packet warnings for from_base64 function. (#7409) 2018-08-17 23:12:37 +08:00
016006f5c5 expression: handle max_allowed_packet warnings for to_base64 function. (#7266) 2018-08-15 10:49:20 +08:00
6e33d2e3b7 expression: fix behavior for builtin 'LTrim', 'RTrim' and 'Trim' (#7291) 2018-08-07 15:07:02 +08:00
H
6287b24f43 expression: handle max_allowed_packet warnings for space function. (#7210) 2018-08-02 12:57:06 +08:00
c38f567645 expression: handle max_allowed_packet warnings for pad functions (#7171) 2018-07-31 15:12:31 +08:00
06021c7cfe remove types.Row interface (#7170) 2018-07-27 13:45:03 +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
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
07dc46d3cb expression: refactor hybrid type expressions (#5550) 2018-01-06 11:04:50 +08:00
f1e89cde19 *: use lower-case of github.com/sirupsen/logrus (#5400)
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus

* vendor: update pd

* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
8b15cb52b7 *: move StatementContext to its own package. (#5177) 2017-11-22 00:11:14 +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
b4ad894b0a expression, plan: do come code clean and make golint happy (#4681) 2017-09-29 10:35:47 +08:00
459c4691b5 expression: remove useless code (#4672) 2017-09-28 16:03:04 +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
a8b09d2761 expression: reorganize error messages for non-existent functions (#4582) 2017-09-21 12:14:50 +08:00
d089deb1b0 expression: remove the usage of "TypeClass" in "builtin_string.go" (#4573) 2017-09-21 10:30:11 +08:00
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00
ebfcd7d90a expression: rewrite builtin function: CONVERT (#4417) 2017-09-08 11:08:39 +08:00
48c0ecae1c expression: rewrite builtin function: FIELD (#4419) 2017-09-07 20:13:09 +08:00
d82a36b562 expression: rewrite builtin function: INSERT (#4414) 2017-09-07 19:26:59 +08:00
2736812381 expression: rewrite builtin function: EXPORT_SET (#4434) 2017-09-07 18:02:15 +08:00
62b6a9961b expression: rewrite builtin function: FORMAT (#4416) 2017-09-06 20:01:00 +08:00
ee23ae54a6 Fixed word misspelled (#4448) 2017-09-06 12:03:51 +08:00
55bbc41069 expression: adjust getFunction context.Context param position (#4400) 2017-09-01 16:03:19 +08:00
7f6d60a037 expression: builtin function OCT() handle binary value mistakenly. (#4369) 2017-08-30 10:48:36 +08:00
b7aa9137b2 expression: rewrite builtin function: MAKE_SET, QUOTE (#4318) 2017-08-29 10:06:19 +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