Commit Graph

37 Commits

Author SHA1 Message Date
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
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
xia
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
xia
66253f0fd7 *: pass go vet
pass go vet
2015-09-06 19:10:04 +08:00
xia
1ac7e635d2 *: pass go vet
pass go vet
2015-09-06 18:43:34 +08:00
ced00cc547 *: Remove conversion function
It is useless in MySQL and will cause conflict with
year/time/datetime/date function.
2015-09-06 18:07:17 +08:00
d1b3e2da67 types: Improve Convert function
Check unsignedflag, charsetbin
2015-09-06 16:54:52 +08:00
63ddb9c531 fix CurrentTimestamp check error for different timezones 2015-09-06 07:50:26 +00:00
0d6f270068 Add files 2015-09-06 12:08:47 +08:00