Commit Graph

269 Commits

Author SHA1 Message Date
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
b13d935670 Merge pull request #114 from pingcap/shenli/show-variables
Shenli/show variables
2015-09-11 17:37:20 +08:00
be5827dea4 plans: Remove useless code
Address comment
2015-09-11 17:29:23 +08:00
b9b94dd575 Merge pull request #116 from cznic/master
parser/parser.y: S/R conflicts 9->4.
2015-09-11 17:25:50 +08:00
3ec8d27a71 parser/parser.y: S/R conflicts 9->4. 2015-09-11 10:23:35 +02:00
e5ea4bba45 plans: Remove global variable store in from_test.go
Fix make check errors.
2015-09-11 14:04:12 +08:00
92f9d3b17e plans: Add test case for show variables
Add test case for show variables
2015-09-11 13:57:57 +08:00
bfeb0f8a7b Merge pull request #113 from pingcap/siddontang/in-with-subquery
expressions,parser: IN expression uses subquery
2015-09-11 13:54:47 +08:00
6ce10d1a4d expressions,parser: IN expression uses subquery 2015-09-11 13:45:47 +08:00
fe78877401 Merge pull request #111 from pingcap/siddontang/check-subquery-column
check subquery column
2015-09-11 13:32:41 +08:00
6ecc7cccfd Address comment 2015-09-11 13:28:31 +08:00
e37c62b88d *: check column in select uniformly 2015-09-11 13:15:01 +08:00
ca163c38f7 expressions: check subquery column count 2015-09-11 13:09:54 +08:00
15eaba81a2 Merge pull request #104 from cznic/master
parser/parser.y: S/R conflicts 10->9.
2015-09-11 12:38:26 +08:00
6b23c71efe Merge pull request #110 from pingcap/siddontang/update-subquery
expressions: update subquery
2015-09-11 12:13:30 +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
492bb4f349 Merge pull request #105 from pingcap/coocood/check-args
driver: check argument types
2015-09-11 11:18:47 +08:00
f72377cc4e tidb: checkArgs fix comment syntax. 2015-09-11 11:16:36 +08:00
088288b797 tidb: add comments on checkArgs. 2015-09-11 11:06:17 +08:00
54adce0394 Merge pull request #106 from pingcap/golint-happy
tables tests: replace cnt + 1 to cnt++
2015-09-11 10:04:14 +08:00
e1207adb6c tables tests: replace cnt + 1 to cnt++
golint warning
2015-09-11 09:50:53 +08:00
60e5999dd9 driver: check argument types
We use mysql.Time internally and time.Time type has not been handled, so when user pass in time.Time type, tidb returns error.
Since we reduced integer types to only 'int', 'int64', 'uint64' recently, all other integer types needs to be converted to int64 or uint64.

Fixes #95
2015-09-11 09:49:01 +08:00
e052e57ef9 parser/parser.y: S/R conflicts 10->9. 2015-09-10 19:48:21 +02:00
6c292141f0 Merge pull request #102 from cznic/master
parser/parser.y: S/R conflicts 11->10.
2015-09-10 23:31:31 +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
9c52952c86 Merge pull request #103 from pingcap/siddontang/row-with-in-expr
support row constructor in IN expression
2015-09-10 23:27:13 +08:00
1758d53dc8 Address comment 2015-09-10 23:13:32 +08:00
7c12300baa utl/types: cast bound to float to compare with float, address comments 2015-09-10 22:54:11 +08:00
80d574bfc4 util/types: unexport method overflow and invConv 2015-09-10 22:29:28 +08:00
0b06ec79ae parser/parser.y: S/R conflicts 11->10. 2015-09-10 14:45:19 +02:00
74f0095ae3 Merge pull request #101 from pingcap/shenli/fix-interpreter
interpreter: Change default dbPath
2015-09-10 20:36:39 +08:00
a36ce20eab interpreter: Change default dbPath
Fit driver changes
2015-09-10 20:29:54 +08:00
20cf24f535 *: Implement show variables stmt/rset/plan
TODO: add test cases
2015-09-10 20:24:09 +08:00
e644d9b406 Merge pull request #99 from cznic/master
parser/parser.y: Remove ConstraintOpts superfluous production. S/R conflicts 18->11.
2015-09-10 20:16:54 +08:00
8c3e5a28e6 util/types: clean up for golint 2015-09-10 20:14:51 +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
a6998ebe42 parser/parser.y: S/R conflicts 18->11. 2015-09-10 14:06:45 +02:00
e833a9fadf Merge pull request #98 from cznic/master
parser/parser.y: Remove FieldOpts superfluous production. (S/R conflicts 24->18)
2015-09-10 19:45:16 +08:00
288fc4bc17 parser: Support SHOW VARIABLES syntax
Finish parser, implement in the next commit.
2015-09-10 19:32:04 +08:00
bc95ddd9f5 parser/parser.y: Remove superfluous production of FieldOpts. (S/R conflicts 24->18). 2015-09-10 13:16:10 +02:00
be4ce5b17c tidb: add row test 2015-09-10 18:43:29 +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
63776c2e76 Merge pull request #92 from pingcap/qiuyesuifeng/decimal-type-index-support
Add decimal type codec support.
2015-09-10 18:21:29 +08:00