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
7b248032da
parser: address comment.
2015-12-24 11:00:34 +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
a6a9b13f99
Merge pull request #763 from pingcap/shenli/show-procedure
...
*: Support show procedure status syntax
2015-12-22 09:33:50 +08:00
6e1094c16a
parser: "variables" is an unreserved keyword
2015-12-21 23:27:45 +08:00
186f0cb3ee
built-in/pow add test in parser
2015-12-21 16:11:05 +08:00
33d71ad3b0
Merge remote-tracking branch 'remotes/master'
2015-12-21 13:39:49 +08:00
0539de5252
built-in/pow add test in parser and delete bultinPower function
2015-12-21 13:02:58 +08:00
2fe9938ca0
*: Support show procedure status syntax
2015-12-21 12:15:56 +08:00
9084d5d465
parser: fix parsing curtime
...
1. It can be used as an identifier
2. It should be called with parentheses
2015-12-21 11:13:45 +08:00
1009e715c9
builtin/time: Treat curTime as a synonym to currentTime and handle it at scanner part.
2015-12-20 17:28:21 +08:00
8d0bf06cd5
builtin/time: Add tests in parser and support the fsp argument
2015-12-20 13:34:39 +08:00
ee333b554e
fix alignment
2015-12-20 01:06:36 +08:00
c01879ba2e
parser: support built-in function pow
2015-12-19 23:51:04 +08:00
1b0c2e38cf
builtin/time: support CURRENT_TIME(), CURTIME()
...
For github issue #236 .
2015-12-19 22:29:13 +08:00
3d93c973e8
parser: add comment for exported variables.
2015-12-18 20:11:34 +08:00
c5fae25a60
optimizer: validates '?' is not allowed in non-prepare mode.
2015-12-18 19:40:45 +08:00
dcdb32dbde
plan. executor: support prepared statement.
2015-12-18 16:56:08 +08:00
da547dc073
Update scanner.l
...
finish another format error!
2015-12-15 17:36:24 +08:00
6e33ea7d44
Update scanner.l
...
OK, Align finished.
2015-12-15 17:34:55 +08:00
cd3b9ba937
parser: support built-in function substr
2015-12-15 16:47:46 +08:00
d97f091cb7
parser: parse position expression in parser, fix order by position.
...
The position expression, like "1" in "order by 1" was parsed ito `*ast.ValueExpr` in parser, replaced to position expression by resolver,
But flag setter sets flag before resolving process, so position flag is not set.
2015-12-15 14:04:13 +08:00
ece23b0c88
*: Fix bug for parse repeat function
2015-12-15 13:43:12 +08:00
54683c5348
parser: refactor show statement, supports "show databases like 'test2'"
2015-12-14 16:43:30 +08:00
53a175f81c
Merge pull request #718 from pingcap/shenli/issue-715
...
*: Support connection_id()
2015-12-14 15:40:45 +08:00
1e1ef8a0bd
*: Support connection_id()
...
Fix: https://github.com/pingcap/tidb/issues/715
2015-12-14 14:40:55 +08:00
043f536c32
Merge pull request #692 from pingcap/zimuxia/inspect-kv
...
*: Support inspect kv
2015-12-14 14:29:35 +08:00
8d8a84babd
parser: Support set transaction syntax
...
Fix issue #712
2015-12-14 13:17:44 +08:00
a78548e8d0
Merge branch 'master' into zimuxia/inspect-kv
...
Conflicts:
table/tables/tables.go
2015-12-10 16:55:30 +08:00
f8b2aee565
Merge pull request #697 from pingcap/shenli/fix-issue-694
...
*: Parse delay_key_write option but ignore it
2015-12-09 19:22:01 +08:00
1a17ea014e
Merge remote-tracking branch 'origin/master' into shenli/fix-issue-694
2015-12-09 17:53:33 +08:00
a520bc6bf8
parser: Support now() as default column value
...
Fix: https://github.com/pingcap/tidb/issues/695
2015-12-09 17:52:08 +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
76f5d9294f
parse: update comments
2015-12-09 12:11:36 +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
176dfee876
parser: Fix reduce/reduce conflicts
...
There are more than one "STATUS" in UnReservedKeyword rule
2015-11-14 22:15:54 +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
741b39ef32
*: Address comment
2015-11-11 17:17:27 +08:00
f09f61a79c
*: Add some unit tests
2015-11-11 11:34:13 +08:00
9203fa4a70
*: Fix mysqldump import data problems
2015-11-11 00:45:58 +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
784e7a1218
parser: support show status statement and add test.
2015-11-09 19:37:20 +08:00