Commit Graph

75 Commits

Author SHA1 Message Date
2fe9938ca0 *: Support show procedure status syntax 2015-12-21 12:15:56 +08:00
2e1cf26a32 optimizer: typeInferrer supports more expression.
This is require for implementing prepared statement, because binary protocol depends more
on the result field type to decode value, we have to correctly set the result field type.

For statement like 'select ?', the type of the field is unknown until we execute the statement with argument,
If the field type of  parameter marker `?' is not set properly, client will not be able to read the value.
2015-12-16 18:35:45 +08:00
ddea31b28e ast: address comments. 2015-12-14 10:37:35 +08:00
4436aff284 ast: use IsConstant function
address comment
2015-12-14 10:37:34 +08:00
16757fd9b0 optimizer: add comment. use constant flag. 2015-12-14 10:37:34 +08:00
c970ff6d4d ast: move flag setter to ast 2015-12-14 10:37:34 +08:00
8337e63529 ast, optimizer: implement flag setter. 2015-12-14 10:37:34 +08:00
6222303129 ast, optimizer: add flag field for expression. 2015-12-14 10:37:34 +08:00
1a17ea014e Merge remote-tracking branch 'origin/master' into shenli/fix-issue-694 2015-12-09 17:53:33 +08:00
9e6948307c *: Parse delay_key_write option but ignore it
Prevent compile error. Fix: https://github.com/pingcap/tidb/issues/694
2015-12-09 16:18:39 +08:00
949d92d6df optimizer, executor: replace panic with log.Fatal 2015-12-07 18:39:51 +08:00
429716fc37 optimizer, executor: address comment. 2015-12-07 16:16:34 +08:00
9448297dd3 optimizer: rename binder to resolver. address comment. 2015-12-07 11:40:24 +08:00
a08b521b76 ast: address comment. 2015-12-07 10:12:46 +08:00
44e2c7c8df optimizer/evaluator: add more tests. 2015-12-02 13:17:28 +08:00
01d33e9261 evaluator: add tests. 2015-11-30 20:58:50 +08:00
cf9a23d23b optimizer, executor: build ranges for more expression, pass more tests. 2015-11-26 20:02:28 +08:00
f3e62b87ec optimizer: add static evaluator and range builder. 2015-11-24 20:44:12 +08:00
49bc1c8d9c executor: fix bugs, pass more tests. 2015-11-18 17:19:43 +08:00
9af46bbdb6 Merge branch 'master' into coocood/new-plan 2015-11-18 10:06:35 +08:00
c6888526ec executor: pass more tests. 2015-11-17 21:50:00 +08:00
c01af56fc3 executor, optimizer: new executor and optimizer implementation 2015-11-13 23:24:10 +08:00
7daf2e92e2 Merge remote-tracking branch 'origin/master' into shenli/mysqldump
Conflicts:
	parser/scanner.l
2015-11-11 17:19:01 +08:00
ea0953b328 Merge master and pass mysqldump dump data 2015-11-11 00:36:10 +08:00
xia
415085546b Merge branch 'master' into zimuxia/issue525
Conflicts:
	expression/variable.go
	parser/scanner.l
	plan/plans/show.go
	plan/plans/show_test.go
	stmt/stmts/set.go
2015-11-09 20:22:05 +08:00
xia
23a7e88f0d *: support ast 2015-11-09 19:51:35 +08:00
fc980462a0 Merge pull request #524 from pingcap/zimuxia/issue-419
parser: Support ADDDATE and SUBDATE function
2015-11-09 13:25:17 +08:00
8c99975ac4 *: fix mybatis test error. 2015-11-07 16:57:10 +08:00
xia
b98b6920b9 *: add comments 2015-11-06 21:23:11 +08:00
xia
7eb1f451fd *: support ast 2015-11-06 17:31:53 +08:00
275d4cf3f8 *: Add some sql syntax to prevent mysqldump
Support lock/unlock/show table status
2015-11-06 15:59:06 +08:00
b24f320d55 parser: remove old parser and move ast/parser to /parser. 2015-11-05 16:03:26 +08:00
2f2e31c8f4 ast: rename ast node receiver 'nod' to 'n'. 2015-11-05 14:42:15 +08:00
84b2538158 Merge pull request #518 from pingcap/goroutine/parser-clean-up
parser: clean up
2015-11-05 14:27:42 +08:00
9be82dbe27 ast: address comment. 2015-11-05 14:14:40 +08:00
c623fafc72 parser: clean up 2015-11-05 13:53:32 +08:00
524e18dff1 ast: address comment. 2015-11-04 19:51:33 +08:00
b8a7e68631 ast: add comments about implementation rule on Accept method. 2015-11-04 17:59:12 +08:00
fce519486f ast: visit Select element first in InsertStmt.
Address comment.
2015-11-04 17:00:38 +08:00
03be6a97dc Merge pull request #504 from pingcap/shenli/binder
parser: Add charset info for string literal
2015-11-03 14:48:50 +08:00
6b8a39523f ast/parser: add tests and fix bugs. 2015-11-03 13:53:46 +08:00
a74b373a52 parser: Add charset info for string literal 2015-11-03 11:24:47 +08:00
ba9dfc3551 ast/parser: add text to select field. 2015-11-03 10:00:17 +08:00
067df3ab34 optimizer: fix wildcard conversion. 2015-11-02 18:37:49 +08:00
ab2ec90d93 ast/parser, optimizer: fix duplicate parameter marker, fix offset. 2015-11-02 13:34:04 +08:00
eed9647417 ast, optimizer: add Offset for ParmMarker to make sure the order of param markers. 2015-11-02 11:34:13 +08:00
661771102d Merge pull request #495 from pingcap/shenli/binder
Shenli/binder
2015-11-02 10:22:04 +08:00
01dac873ba *: Address ci problem 2015-10-31 22:37:27 +08:00
1b9fbda6b6 ast/parser: Fix parser.y 2015-10-31 13:22:56 +08:00
92db5158c4 *: Tiny refactor 2015-10-31 13:18:38 +08:00