Commit Graph

247 Commits

Author SHA1 Message Date
97ec35b3fd parser: tiny clean up. 2015-10-09 18:04:59 +08:00
b1f1335a34 parser: clean up and add more test 2015-10-09 16:40:25 +08:00
3f126b65e2 parser: as support Identifier too. 2015-10-09 16:35:42 +08:00
d2bb1911f9 parser: update as option
select field alias can support back/double/single quote
2015-10-09 15:27:46 +08:00
d12525e17c *: remove full join 2015-10-09 13:54:59 +08:00
3514b33fc3 *: use Extract expression 2015-10-09 11:29:09 +08:00
a3084198d4 Merge pull request #331 from pingcap/siddontang/time-current-date
support time current date function
2015-10-09 11:21:09 +08:00
f8361752aa parser: support extract time function 2015-10-09 10:13:05 +08:00
2a5f7b6912 parser: row is an unserved key word 2015-10-08 17:22:32 +08:00
0bc684868f *: Support locate function
See: https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_locate
2015-10-08 16:26:15 +08:00
be58e070a3 parser: support current date 2015-10-08 16:00:37 +08:00
2e6fd071b6 Merge pull request #321 from pingcap/siddontang/dev-union
dev union
2015-10-08 15:26:04 +08:00
d40ee39dc3 *: merge master and fix conflict 2015-10-08 15:21:09 +08:00
f0df7451c0 parser: Support check clause 2015-10-08 15:12:06 +08:00
3c69db4ce3 parser: Support dollar in identifier 2015-10-08 14:36:53 +08:00
812d7d874c *: insert support select union 2015-10-08 08:33:34 +08:00
4cc7351fa9 parser: sub select support union 2015-10-07 21:57:53 +08:00
67864a44c4 *: support order by, limit and parenthesis in union parser 2015-10-07 17:10:59 +08:00
d1bd2243ab parser: handle year field length option
nothing to do
2015-10-07 14:59:25 +08:00
f9e6cd87d6 Merge pull request #314 from pingcap/siddontang/string-function
update string function
2015-10-07 13:10:48 +08:00
cd612c05b6 parser: support lower and parser 2015-10-07 12:03:09 +08:00
83904d21d1 Add OriginText tests for SubSelect 2015-10-07 11:44:13 +08:00
c1affab3c4 Introduce a new pretty way to handle subselect 2015-10-07 11:44:13 +08:00
9e1f700679 Add more comments and fix code style 2015-10-07 11:41:32 +08:00
912164d251 parser: Fix #288
Fix get text of subselect statement.
2015-10-07 11:41:32 +08:00
51203fda5f Merge pull request #287 from pingcap/siddontang/show-create-table
support show create table syntax
2015-10-07 11:06:46 +08:00
556f54e78b Merge pull request #297 from pingcap/siddontang/update-quote-parser
update quote parser
2015-10-07 10:41:00 +08:00
f74328e38d *: Refactor signle table delete statement
Use the same way with multiple table delete.
2015-10-05 22:28:53 +08:00
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
dffe013e79 parser: update identifier quote 2015-09-30 10:34:35 +08:00
4fe771a1c5 parser: check bit field length in parser 2015-09-30 07:07:19 +08:00
597b5c56b3 parser: fix select '\'a\''; parse bug 2015-09-29 16:50:29 +08:00
0b308dc4ee *: merge master and fix conflict 2015-09-29 13:02:18 +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
294d5fb79b *: support show create table syntax 2015-09-28 15:16:57 +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