Commit Graph

178 Commits

Author SHA1 Message Date
9e8ce41f33 expression: fix escape string format. 2015-10-12 17:41:11 +08:00
001a9f923d *: merge master and fix conflict 2015-10-12 17:36:31 +08:00
5c185e807f Merge pull request #358 from fuxiaohei/master
use int64 instead int type, for x86 compilation
2015-10-12 14:10:37 +08:00
fud
8f4e2b93de use int64 instead int type,for x32 compilation 2015-10-12 13:33:44 +08:00
3c98e2f359 Merge remote-tracking branch 'origin/master' into shenli/trim
Conflicts:
	parser/parser_test.go
2015-10-12 11:43:12 +08:00
d32e4f5153 *: support like escape 2015-10-12 09:56:52 +08:00
38abb35769 *: Support trim function
See: https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_trim
2015-10-10 14:57:40 +08:00
a3f17ab8f7 *: merge master and fix conflict. 2015-10-10 10:53:08 +08:00
8b13dfc4f8 Merge pull request #327 from pingcap/siddontang/fix-issue-324
expression: create a new aggregate distinct if not.
2015-10-10 10:44:55 +08:00
e92e66265c expression: Address comment. 2015-10-10 10:29:48 +08:00
bf01d51662 Merge pull request #330 from pingcap/shenli/locate
*: Support locate function
2015-10-10 09:53:11 +08:00
8b6121931e Merge pull request #262 from pingcap/coocood/fix-index-plan
plans:fix a bug in index plan
2015-10-10 09:13:52 +08:00
ebe12aa2da Merge remote-tracking branch 'origin/master' into shenli/locate 2015-10-09 23:19:42 +08:00
d96d5fc759 expression: Address comments 2015-10-09 23:16:03 +08:00
ccb7f12677 plan: move IdentEvalVisitor to plans package and use Getcdentvalue function. 2015-10-09 19:23:35 +08:00
af042795cf expression: Address comment. 2015-10-09 17:55:20 +08:00
38f95c0d0a builtin: remove extract implement 2015-10-09 11:29:29 +08:00
3514b33fc3 *: use Extract expression 2015-10-09 11:29:09 +08:00
2cb8da73b1 expression: add test for distinct with multi eval args. 2015-10-09 10:25:46 +08:00
698c0dd8d0 builtin: support time extract 2015-10-09 09:40:52 +08:00
0bc684868f *: Support locate function
See: https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_locate
2015-10-08 16:26:15 +08:00
dd8116a4b3 builtin: add current date function 2015-10-08 15:59:31 +08:00
23a8c928e6 expression: Address comment 2015-10-08 15:13:09 +08:00
7162697523 expression: create a new aggregate distinct if not.
Fix #324
2015-10-08 15:03:28 +08:00
21793f225a Merge pull request #316 from pingcap/qiuyesuifeng/fix-294
Fix #294.
2015-10-08 12:03:31 +08:00
039bbc6c44 builtin: Address comment 2015-10-07 12:14:21 +08:00
a18c3ddb99 builtin: support lower and upper string function 2015-10-07 12:02:54 +08:00
e8baa91cc5 builtin: update string length 2015-10-07 11:46:56 +08:00
90983decff Merge branch 'master' into coocood/fix-index-plan
Conflicts:
	plan/plans/join.go
2015-10-07 09:56:02 +08:00
4ba7c03eb4 *: fix #294 2015-09-28 19:07:07 +08:00
57027edf03 expression/builtin: add rand function. 2015-09-28 18:37:38 +08:00
825d4f7647 Merge pull request #276 from pingcap/siddontang/dev-set-type
support set type
2015-09-26 07:25:43 +08:00
942b5a071b expression: Address comments 2015-09-25 16:56:41 +08:00
baeb1d022b plans: join plan support index 2015-09-25 16:52:04 +08:00
cfb6622a16 expression: support set type 2015-09-25 16:24:59 +08:00
6170bf55d0 expression: Add some test cases for substring_index
Address comment
2015-09-25 13:54:46 +08:00
f5f0d75444 *: Support SUBSTRING_INDEX function 2015-09-25 12:36:16 +08:00
26efaf2d16 Merge pull request #265 from pingcap/coocood/mention-visitor
expression: rewrite mentioned functions in visitor pattern
2015-09-25 10:08:31 +08:00
1b95334f87 expression: fix import and BaseVisitor 2015-09-24 16:29:29 +08:00
7b0a3b7b74 expression: rewrite mention function to use visitor pattern. 2015-09-24 16:16:44 +08:00
abadc8e7df plans: remove toSpan returned error, remove NullEQ opcode
we are not able to handle NullEQ opcode right now.
2015-09-24 15:07:21 +08:00
8de68fecc0 expression: rewrite mentioned functions in visitor pattern 2015-09-24 14:54:27 +08:00
d4a9152d22 util: add testkit
The testkit package used to run sql statements and check results.
It simplifies testing code.
2015-09-24 13:48:28 +08:00
4625b79666 plan/plans: fix index plan bug. 2015-09-24 13:48:28 +08:00
f31026066e expression: support enum type operation 2015-09-24 10:56:40 +08:00
30c585645f builtin: use Now for sysdate 2015-09-23 20:16:24 +08:00
a7b839d848 builtin: support sysdate function 2015-09-23 17:23:10 +08:00
6d5b187db7 expression: cleanup creating distinct in call 2015-09-23 16:49:05 +08:00
85b436cad4 builtin: Address comment 2015-09-23 16:42:18 +08:00
2c363b72b0 builtin: simplify file name 2015-09-23 16:22:26 +08:00