Commit Graph

165 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
f1423500d3 *: Finish grant global privilege and add uinttest 2015-09-30 17:08:43 +08:00
4fe771a1c5 parser: check bit field length in parser 2015-09-30 07:07:19 +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
99dc1d91b2 Merge pull request #285 from pingcap/siddontang/cleanup-show
cleanup show
2015-09-28 11:34:18 +08:00
55a5b3937b parser: use ShowLikeOrWhereOpt to reduce code 2015-09-28 10:50:17 +08:00
413aa2f4af coldef: remove unsupported table options 2015-09-28 09:10:29 +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
475a9fc49b parser: Address comment 2015-09-23 21:47:30 +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
9f44c80d8f parser: address comment. 2015-09-23 16:58:38 +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
59655e28ca *: support show full tables 2015-09-23 11:12:43 +08:00
f9e400d4b3 builtin: Support User() and Current_User() 2015-09-23 11:02:45 +08:00
d47af1f62e parser: Address comment 2015-09-23 10:03:41 +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
86286e0476 *: Address comment 2015-09-22 11:07:47 +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
434d11a450 expression: refactor expression
Firstly, abstract SubQuery to interface{}, some mock test are not able to keep.
2015-09-21 17:39:28 +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
113cbf2cdc *: Address comments 2015-09-20 22:59:43 +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