41209693d2
ast: rename newNod to newNode.
2015-12-31 18:22:03 +08:00
e45c31b89d
Merge pull request #754 from hhkbp2/complete-adddate,subdate-functions
...
add ast evaluation for date arith
2015-12-29 14:35:00 +08:00
405e6c57d4
add ast evaluation for date arith
2015-12-29 11:42:02 +08:00
631045ce5f
parser: address comment.
2015-12-24 10:47:37 +08:00
bfd188d844
parser: remove YYParse function, use Parse and ParseOne instead.
2015-12-23 18:25:28 +08:00
56ae5f3611
Merge pull request #751 from pingcap/coocood/prepare
...
executor: implement executor for prepared statement.
2015-12-23 18:12:32 +08:00
4ea31357ae
*: Support show index from table
2015-12-22 23:05:06 +08:00
cce746ee8a
Merge branch 'master' into coocood/prepare
...
Conflicts:
session.go
2015-12-22 13:24:57 +08:00
2fe9938ca0
*: Support show procedure status syntax
2015-12-21 12:15:56 +08:00
dcdb32dbde
plan. executor: support prepared statement.
2015-12-18 16:56:08 +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
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
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
b98b6920b9
*: add comments
2015-11-06 21:23:11 +08:00
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