Commit Graph

117 Commits

Author SHA1 Message Date
xia
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
xia
e39a0fd28a Merge branch 'master' into zimuxia/inspectkv-sql
Conflicts:
	parser/parser.y
2016-01-07 11:02:58 +08:00
xia
f6bb202aae parser: address comments 2016-01-07 10:54:20 +08:00
b607c8504b builtin: add time function dayname()
add builtin time function dayname()
2016-01-06 20:11:31 +08:00
xia
c1ef52c6bd parser: add test and update code 2015-12-29 11:41:33 +08:00
xia
547141c0cb parser: support admin check table and admin show ddl 2015-12-25 18:13:05 +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
33d71ad3b0 Merge remote-tracking branch 'remotes/master' 2015-12-21 13:39:49 +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
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
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
ece23b0c88 *: Fix bug for parse repeat function 2015-12-15 13:43:12 +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
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
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
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
784e7a1218 parser: support show status statement and add test. 2015-11-09 19:37:20 +08:00
df1caf0f54 parser: add test cases and use unicode function. 2015-11-09 15:01:36 +08:00
a1417b0bf4 parser: set exactly the same field text as MySQL. 2015-11-09 14:04:35 +08:00
275d4cf3f8 *: Add some sql syntax to prevent mysqldump
Support lock/unlock/show table status
2015-11-06 15:59:06 +08:00
xia
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
xia
77f8b4e4da parser: add date_sub function 2015-10-29 20:34:01 +08:00
xia
d48ac8ca26 Merge branch 'master' into zimuxia/replace-func 2015-10-28 17:53:50 +08:00
xia
935cc8bd52 parser: add replace func 2015-10-28 17:51:18 +08:00
628922ae35 Merge pull request #439 from pingcap/shenli/string-literal
Shenli/string literal
2015-10-28 14:54:51 +08:00
09b66390cf *: Support show grants syntax and add ShowGrant interface to UserPrivileges 2015-10-27 22:01:07 +08:00
3c28357b09 *: Pass context to Compile()
Compile should know context to get current charset info.
2015-10-22 17:09:53 +08:00
xia
e26875e88c parser: add parse replace statment 2015-10-22 14:43:09 +08:00
29369dba8f *: Rename mysqldef to mysql 2015-10-19 16:26:43 +08:00
dac7b00e9e Merge branch 'master' into qiuyesuifeng/date_add_func 2015-10-19 14:35:23 +08:00
422fc2ef06 Merge remote-tracking branch 'origin/master' into shenli/add-priv-step2 2015-10-19 10:51:55 +08:00
6c540d6279 *: Fix issue 393
See: https://github.com/pingcap/tidb/issues/393
2015-10-17 17:09:29 +08:00
486089f450 Merge remote-tracking branch 'origin/master' into shenli/add-priv-step2
Conflicts:
	stmt/stmts/account_manage.go
2015-10-16 14:24:11 +08:00
3fab6c405f Merge pull request #389 from pingcap/coocood/ast
ast: Initial implementation of abstract syntax tree.
2015-10-15 15:37:43 +08:00
14c210bbed parser: add add_date parser support. 2015-10-13 16:39:47 +08:00