Commit Graph

85 Commits

Author SHA1 Message Date
2eb08c0033 Merge remote-tracking branch 'origin/master' into shenli/add-priv-step2 2015-10-02 15:37:04 +08:00
e5ab419eb4 Merge pull request #290 from pingcap/siddontang/blob-text-option-length
parser: blob and text support field length option
2015-09-29 12:58:44 +08:00
95696519b5 Merge pull request #293 from pingcap/qiuyesuifeng/rand-func
Add rand function support.
2015-09-29 09:06:43 +08:00
d77e24b494 *: merge master and fix conflict 2015-09-28 22:32:53 +08:00
e5024e911e parser: add rand function parser support. 2015-09-28 18:37:56 +08:00
cdfc686dcd parser: year support field length option
MySQL manual doesn’t say it, but SQLAlchemy has this test and MySQL
parser handles it too.
2015-09-28 17:18:11 +08:00
3634a953d5 parser: support check expression in create table
nothin to do now
2015-09-28 16:57:47 +08:00
6b3067de42 parser: blob and text support field length option
Manual doesn’t point this, but SQLAlchemy has this test and MySQL
parser handles this too.
2015-09-28 16:22:02 +08:00
0be33b5918 parser: support national parser
nothing to do now
2015-09-28 16:11:24 +08:00
754a519039 parser: support some table options, only in parser. 2015-09-28 08:55:35 +08:00
8a870d2699 *: Support grant statement syntax
Finish syntax parser.
TODO: Implement GrantStmt.Exec()
2015-09-28 00:14:06 +08:00
f5f0d75444 *: Support SUBSTRING_INDEX function 2015-09-25 12:36:16 +08:00
29ba211e73 parser: support parsing '''a''' and """a""" 2015-09-25 10:20:52 +08:00
5786b9b02c *: merge master and fix conflict 2015-09-25 10:05:31 +08:00
60ee772cba parser: support comment for create table
`create table (c int comment ‘this is a comment’)` or
`create table (c int) comment = ‘this is a comment’`

We only support parsing it, and do nothing outside.
2015-09-25 09:03:31 +08:00
d90b616efa *: merge master and fix conflict 2015-09-24 11:11:00 +08:00
4e2277f0b1 Merge pull request #249 from pingcap/qiuyesuifeng/fix-issue234
Fix #234
2015-09-24 11:08:15 +08:00
b59fa848ff parser: support set and enum type 2015-09-24 09:32:04 +08:00
aa5fd34498 parser: support from dual 2015-09-23 21:41:41 +08:00
91e6610d96 parser: support sysdate 2015-09-23 17:23:21 +08:00
c17f44e574 Merge branch 'master' into qiuyesuifeng/fix-issue234 2015-09-23 15:47:11 +08:00
5ae7447804 Merge pull request #246 from pingcap/shenli/builtin-user
builtin: Support User() and Current_User()
2015-09-23 14:29:56 +08:00
cea7e0817e *: WIP-fix issue 234. 2015-09-23 11:21:48 +08:00
f9e400d4b3 builtin: Support User() and Current_User() 2015-09-23 11:02:45 +08:00
b961507311 *: support current_timestamp time function 2015-09-23 09:33:52 +08:00
a6a9a63ea6 parser: Support collate expr in parser
Fix issue: https://github.com/pingcap/tidb/issues/224
2015-09-22 23:25:03 +08:00
05cc62a4cb Merge pull request #226 from pingcap/siddontang/insert-empty-paren
support `insert t () values ()`
2015-09-22 11:21:26 +08:00
1485ed490b parser: support parsing insert t () values () 2015-09-22 10:31:57 +08:00
50fb972258 *: support show collation 2015-09-22 09:20:36 +08:00
e91233533e expression: fix import 2015-09-21 18:55:17 +08:00
2a67b61219 Merge pull request #210 from pingcap/shenli/comment-in-query
*: Remove leading comment when check IsQuery
2015-09-21 12:54:13 +08:00
e9ced8065a *: Address comments 2015-09-21 11:17:47 +08:00
0e78959838 *: Remove leading comment when check IsQuery
IsQuery check the prefix of sql text, so we need to remove comments.
2015-09-21 10:47:05 +08:00
337517379f *: merge master and fix conflict 2015-09-21 10:08:01 +08:00
2c2e025305 Merge pull request #207 from pingcap/shenli/create-user
Support basic create user statement
2015-09-21 09:43:46 +08:00
2353d6c990 *: merge master and fix conflict 2015-09-20 19:32:41 +08:00
e68f558e11 *: merge master and fix conflict 2015-09-20 19:29:46 +08:00
1400803273 Merge remote-tracking branch 'origin/master' into shenli/create-user 2015-09-20 16:25:54 +08:00
227c9a16d1 *: Support basic create user statement
Support create user with authstring
2015-09-20 16:20:11 +08:00
4213406796 Merge pull request #201 from pingcap/coocood/parser-where-cleanup
parser: make WhereClauseOptional return Expression.
2015-09-20 15:50:04 +08:00
bda68363c2 parser: fix test case 2015-09-20 15:45:32 +08:00
8b6093a190 parser: add test case for where clause in select
where clause in update and delete is already covered in parser_test.go.
2015-09-20 15:41:33 +08:00
2c31d4a139 merge from master and fix conflict 2015-09-20 13:00:25 +08:00
75edbf7e3c *: add show variables where test 2015-09-20 12:57:56 +08:00
609bbac4a4 parser: Support CreateUser syntax 2015-09-20 11:28:57 +08:00
4b80cd2c70 *: Address comments 2015-09-19 18:49:41 +08:00
aef82f0dbf parser: fix parsing bit error 2015-09-19 15:00:02 +08:00
7b90a3b6b1 WIP: Support set password 2015-09-18 17:32:49 +08:00
0e7bec82cd parser: support null eq <=> 2015-09-18 07:03:38 +08:00
c6186c6ad4 Merge branch 'master' into qiuyesuifeng/exists-subquery
Conflicts:
	parser/parser_test.go
2015-09-15 18:07:51 +08:00