22612fd2f0
expression/expressions: add exists subquery support.
2015-09-14 11:11:11 +08:00
76475b2868
*: add base exists subquery framework.
2015-09-14 11:10:44 +08:00
730adf7fb5
Merge pull request #136 from pingcap/ngaut/tiny-clean-up
...
expression, parser: Tiny clean up
2015-09-14 10:42:09 +08:00
39b6503558
Merge pull request #125 from pingcap/qiuyesuifeng/any-all-support
...
Support any/some/all subquery.
2015-09-14 10:33:06 +08:00
002b2a3bf8
expression/expressions: address comment.
2015-09-14 10:27:57 +08:00
82f65233d6
expression/expressions: address comment.
2015-09-14 10:18:33 +08:00
58c7cf3a23
expression, parser: Tiny clean up
2015-09-14 10:15:44 +08:00
23f8e96f41
expressions: Address comment
2015-09-14 08:31:11 +08:00
b36ad55741
expressions: use integer for time in arithmetic op if FSP = 0
2015-09-14 08:23:04 +08:00
393e23b477
expression/expressions: tiny clean up.
2015-09-12 14:58:16 +08:00
b107da119b
plan: add Close method
2015-09-12 13:38:43 +08:00
07c3f878a5
plan: Next return Row type
...
address comment
2015-09-12 13:38:43 +08:00
8a8060abb1
plan: Next skeleton
...
Just added the method, not implemented yet.
`Do` will be kept until all plans implemented `Next`
2015-09-12 13:38:43 +08:00
ca60323edb
expression/expressions: address comment.
2015-09-12 12:03:17 +08:00
ace4331c97
expression/expressions: add error check test.
2015-09-11 22:52:21 +08:00
09502ecca2
expression/expressions: add column count check.
2015-09-11 22:51:54 +08:00
32edd1c08f
expression/expressions: add cmp subquery test.
2015-09-11 22:31:38 +08:00
1642355dfd
expression/expressions: add null value check.
2015-09-11 22:30:54 +08:00
02c9334da4
expression/expressions: add all/any for subquery comparation.
...
support subquery.
2015-09-11 19:50:37 +08:00
f713eb201a
*: add base compare subquery framework
...
@qiuyesuifeng
Conflicts:
parser/parser_test.go
2015-09-11 17:49:54 +08:00
6ce10d1a4d
expressions,parser: IN expression uses subquery
2015-09-11 13:45:47 +08:00
6ecc7cccfd
Address comment
2015-09-11 13:28:31 +08:00
ca163c38f7
expressions: check subquery column count
2015-09-11 13:09:54 +08:00
af8d96dff3
Address comment
2015-09-11 11:56:39 +08:00
825bb7c6a3
expressions: update subquery
2015-09-11 11:48:51 +08:00
396b0a2bca
Merge pull request #100 from pingcap/coocood/convert
...
util/types, column, expressions: use types.Convert to replace Col.Cas…
2015-09-10 23:30:54 +08:00
1758d53dc8
Address comment
2015-09-10 23:13:32 +08:00
a80d131c06
util/types, column, expressions: use types.Convert to replace Col.CastValue
...
The two methods has similar functionality and has complex logic, after this change,
the code base would be easier to maintain.
For `CAST` function, the behaviour is different than the general purpose `types.Convert`,
so I implemented a dedicated function for it.
2015-09-10 20:11:40 +08:00
2055d891ed
expressions: support row in IN expression
2015-09-10 18:35:03 +08:00
af42efef32
expressions: check with columnNumber
2015-09-10 18:35:03 +08:00
89455adedc
Merge pull request #89 from pingcap/coocood/unify-int-type
...
*: unify all integer types to int64 and uint64
2015-09-10 11:26:49 +08:00
7e5fa1175e
Address comment
2015-09-10 11:07:29 +08:00
ecc04adb5b
expression: only comparison operation support row constructor
2015-09-10 09:32:08 +08:00
18f23afbdb
expression: update variable name
2015-09-09 22:35:25 +08:00
46852b9a3c
expression: add Row types in helper function
2015-09-09 22:35:25 +08:00
ce99391d9b
expression: add Row expression
2015-09-09 22:35:25 +08:00
a5e0858986
*: unify all integer types to int64 and uint64
...
Simplify type related codes.
2015-09-09 22:21:15 +08:00
1e4cdb813f
*: update QL-LICENSE and STRUTIL-LICENSE.
2015-09-08 19:25:50 +08:00
b2d62f9fb6
mysqldef, kv, stmt, stmt/stmts, parser, field: fix-copyright-infringement.
2015-09-07 09:05:15 -04:00
0498db499c
Merge pull request #42 from Unknwon/iconv
...
expression/expressions: replace iconv-go with text/transform
2015-09-07 17:49:15 +08:00
af3626fcbd
expression/expressions: replace iconv-go with text/transform
...
Remove CGO requirement for compiling iconv-go currently is using.
Replace it with native implementation of Go.
2015-09-07 05:22:15 -04:00
d97c747264
expressions: operator supports []byte type
2015-09-07 16:08:32 +08:00
213793ba38
expressions:remove unnecessary test
2015-09-07 13:37:27 +08:00
329721d226
*:handle error with types.Compare function
2015-09-07 13:35:42 +08:00
dd19e36c28
expressions:use types.Compare
2015-09-07 13:35:42 +08:00
0670dd0e34
*: pass gofmt
...
pass gofmt
2015-09-07 11:28:10 +08:00
84b2a6b8af
parser: Support Convert better and add unit test
...
1. Change FunctionCast.String() to support Convert String()
2. Add unit test in parser for convert
2015-09-06 23:23:39 +08:00
cab1ed9fdd
Merge pull request #16 from pingcap/zimuxia/go-vet
...
Pass go vet
2015-09-06 20:32:33 +08:00
66253f0fd7
*: pass go vet
...
pass go vet
2015-09-06 19:10:04 +08:00
1ac7e635d2
*: pass go vet
...
pass go vet
2015-09-06 18:43:34 +08:00