661339c90c
parser: Support truncate t ( #1136 )
...
* parser: support truncate t
2016-04-21 18:05:50 +08:00
ff05329a05
parser: support index hint syntax. ( #1113 )
2016-04-19 18:42:44 +08:00
8c164bc078
evaluator,parser: support ASCII(). ( #309 ) ( #1083 )
...
* evaluator: add a builtin function wanted by #310 .
* parser: update parser for ASCII().
2016-04-14 01:53:50 -05:00
08034540f0
*: Add leak test
...
* *: add leak test and tiny clean up
* *: unify test format and add leak test
Conflicts:
store/localstore/compactor_test.go
mysql/error_test.go
*: add leak test
2016-04-07 20:53:45 +08:00
eb941fb12f
*: Support mysqldump dump database
...
1. Fix bug in show tables like with escape char.
2. Parse but ignore sql_cache/sql_no_cache.
2016-04-07 16:25:49 +08:00
d01d516105
evaluator, parser: support UTC_DATE()
...
* evaluator, parser: support UTC_DATE()
Fix issue: #236 .
2016-04-05 21:25:04 +08:00
0a55471cba
parser: Treat key as primary key in columndef
...
Fix: https://github.com/pingcap/tidb/issues/961
2016-03-28 14:21:52 +08:00
7f57652532
*: Support more create table options
...
The options are parsed but ignored.
Fix: https://github.com/pingcap/tidb/issues/975
Fix: https://github.com/pingcap/tidb/issues/974
2016-03-16 10:41:42 +08:00
5fd70ed31e
parser: Handle MySQL-specific code
...
Fix: https://github.com/pingcap/tidb/issues/971
2016-03-15 15:53:39 +08:00
512fca2a79
parser: remove duplicate tests
2016-03-01 20:19:18 +08:00
42e6fe0077
Merge branch 'master' into zimuxia/inspectkv-sql
...
Conflicts:
parser/parser.y
2016-01-11 11:18:42 +08:00
2c5bfaebb0
builtin: add version()
2016-01-10 14:46:47 +00:00
e39a0fd28a
Merge branch 'master' into zimuxia/inspectkv-sql
...
Conflicts:
parser/parser.y
2016-01-07 11:02:58 +08:00
b607c8504b
builtin: add time function dayname()
...
add builtin time function dayname()
2016-01-06 20:11:31 +08:00
8993f0e148
*: add test
2015-12-29 20:40:36 +08:00
c1ef52c6bd
parser: add test and update code
2015-12-29 11:41:33 +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
4ea31357ae
*: Support show index from table
2015-12-22 23:05:06 +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
8d0bf06cd5
builtin/time: Add tests in parser and support the fsp argument
2015-12-20 13:34:39 +08:00
cd3b9ba937
parser: support built-in function substr
2015-12-15 16:47:46 +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
1e1ef8a0bd
*: Support connection_id()
...
Fix: https://github.com/pingcap/tidb/issues/715
2015-12-14 14:40:55 +08:00
8d8a84babd
parser: Support set transaction syntax
...
Fix issue #712
2015-12-14 13:17:44 +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
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
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
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
5ce49e128d
*: add test
2015-11-06 17:33:05 +08:00
275d4cf3f8
*: Add some sql syntax to prevent mysqldump
...
Support lock/unlock/show table status
2015-11-06 15:59:06 +08:00
6a799bfbd8
parser: support ADDDATE and SUBDATE function
...
Conflicts:
parser/parser.y
2015-11-05 17:26:05 +08:00
88711021e8
parser: address comment.
2015-11-05 16:13:29 +08:00
b24f320d55
parser: remove old parser and move ast/parser to /parser.
2015-11-05 16:03:26 +08:00
c49df394e1
Merge pull request #485 from pingcap/zimuxia/date-sub
...
Support date_sub function
2015-11-03 09:46:27 +08:00
3871b0afbd
*: Support character string literal
...
See: https://dev.mysql.com/doc/refman/5.7/en/charset-literal.html
2015-10-30 12:21:57 +08:00
a6f146564e
Merge pull request #473 from pingcap/shenli/show-grants
...
Shenli/show grants
2015-10-30 08:46:57 +08:00
c49e04eee1
parser: add date_sub function test
2015-10-29 20:34:30 +08:00