Commit Graph

432 Commits

Author SHA1 Message Date
3f296ed82d *: add Trigger_priv column to mysql.user (#3143) 2017-05-03 13:49:07 +08:00
588bf60f0c *: support analyze index (#3156) 2017-05-01 19:42:46 +08:00
0595143194 *: add Process_priv column to mysql.user (#2994) 2017-04-28 22:35:46 +08:00
2547b86be3 parser: replace Expression with ExpressionListOpt (#3124) 2017-04-26 13:08:15 +08:00
8aab91fb3c allowed zero argument in typeinferer (#3137) 2017-04-25 23:08:28 +08:00
31d2cc8351 parser: make "ENGINE = xxx" optional in partition definition (#3140) 2017-04-25 17:20:37 +08:00
5243f6f461 expression: fixed pow/power return wrong error message when there more than two arguments. (#3114) 2017-04-23 21:13:27 +08:00
78d4520199 *: resolve conflict on 'in' and add builtin position (#3079) 2017-04-19 21:30:48 +08:00
aa9a97a051 *: show create table output utf8_bin collate. (#3076)
*: show create table output utf8_bin collate.

We only support case sensitive utf8_bin collation right now, but show create table ignored the collation.
So the dumped DDL statement doesn't contains collation option.
When the DDL statement is executed on MySQL, the collation will be changed to utf8_general_ci.
If the string column is defined as unique key, there would be duplicated key error.

This PR enforce utf8 charset and utf8_bin collation when parse a column definition, and enfore table option
`DEFAULT CHARSET=utf8 COLLATE=utf8_bin` in SHOW CREATE TABLE statement.
2017-04-18 19:54:21 +08:00
1ec85a7b1c *: add three more builtin definitions (#3016) 2017-04-10 14:26:16 +08:00
f7cc682eed *: support Super_priv (#2990) 2017-04-05 19:21:07 +08:00
c9e3b81c53 Parser: Fix function resolution rule for 'TIMESTAMPADD' and 'TIMESTAMPDIFF' (#2991) 2017-04-05 14:01:47 +08:00
aaa6184670 *: implement index nested loop join (#2945) 2017-04-01 15:12:20 +08:00
f66c46953d *: remove MySQL enterprise functions definition. (#2973) 2017-03-31 18:03:19 +08:00
1253d2b87b builtin: get_format function implemented. (#2932) 2017-03-29 09:11:47 +08:00
7739d97697 Sort Merge Join (#2850)
parser/plan/executor: Added Merge Join operator with Hints
2017-03-22 21:42:16 +08:00
6d58b5c6ec parser: parse /*+ */ for optimizer hint (#2904) 2017-03-21 14:47:21 +08:00
779a38b61c *: parse and ignore lock option in alter table statement (#2811) 2017-03-11 15:47:28 +08:00
a884e170c3 parser: QUOTE is not a keyword (#2805)
Fix https://github.com/pingcap/tidb/issues/2803
2017-03-10 14:07:54 +08:00
ecb01eb3af parser: handle the national character set like N'literal' (#2773) 2017-03-06 19:08:54 +08:00
50a6799d1f parser: PI is not a keywork (#2763) 2017-03-01 14:47:05 +08:00
92a0b89771 parser: grant select on test.* to 'test' (#2757) 2017-03-01 12:50:40 +08:00
b2f8a6fceb parser: parse kill statement (#2734) 2017-02-27 13:58:02 +08:00
f695f874c6 parser: compatible with "on update timestamp now" (#2728) 2017-02-24 19:32:12 +08:00
b0aa4ce68b parser: parse ON UPDATE CURRENT_TIMESTAMP(6) (#2714) 2017-02-24 12:48:04 +08:00
61868f44dc *: Support the statement of "create table ... like" (#2707) 2017-02-22 23:57:04 +08:00
16fa15d890 *: support revoke statement (#2661) 2017-02-21 22:05:50 +08:00
657a74fdf6 *: add parser and definition for all unsupported builtin funcs (part 6) (#2679) 2017-02-21 11:47:39 +08:00
3294103a37 *: add parser and definition for all unsupported builtin funcs (part 7) (#2680) 2017-02-21 11:23:43 +08:00
a202e5085a *:add parser and definition for: (#2677)
BENCHMARK, CHARSER, COERCOBILITY, COLLATION, ROW_COUNT, SESSION_USER, SYSTEM_USER

:q!
2017-02-20 10:41:32 +08:00
41afe4e934 *: add parser and definition for: (#2667) 2017-02-19 17:07:22 +08:00
a8d185d8cb *: add parser and definition for all unsupported builtin funcs (part 3) (#2657) 2017-02-17 16:49:42 +08:00
b001b8cec5 parser: Unify time unit string literal (#2660)
Use upper case for time unit string literal in parser.
2017-02-17 11:43:06 +08:00
7f8f16f27c *: add parser and definition for all unsupported builtin funcs (part 2) (#2655) 2017-02-17 10:58:33 +08:00
2f07f7141d *: Support basic aes_encrypt/aes_decrypt function. (#2640) 2017-02-16 14:03:44 +08:00
dcc7715ec2 *: support with grant option for grant statement (#2647) 2017-02-16 12:58:07 +08:00
3f4c71bdbb *: add parser and definition for all unsupported builtin funcs (part 1) (#2649)
* *: add parser and definition for builtin funcs:
bin, elt, exportSet, format, fromBase64, insert, instr, loadFile, lpad
2017-02-16 11:37:42 +08:00
ce1447449b parser: support the field of column optional (#2634) 2017-02-15 13:12:45 +08:00
4fd95363b2 *: flush privileges statement (#2602) 2017-02-13 13:17:54 +08:00
51defd89bb *: Support the statement of drop default (#2616) 2017-02-09 17:21:44 +08:00
87f51736ee *: support the statement of alter table alter column set default (#2608) 2017-02-08 15:03:27 +08:00
16c1aae54c parser: remove useless code (#2604) 2017-02-07 19:43:42 +08:00
395a9c6129 *: add builtin function UTC_TIMESTAMP (#2592)
* *: add builtin function UTC_TIMESTAMP
2017-02-05 02:16:18 -06:00
15d2065287 Support builtin function timestamp (#2498) 2017-02-05 13:06:27 +08:00
59de1e5494 parser: Parse primary key name and ignore it (#2582) 2017-02-03 14:07:09 +08:00
ac10a37ee3 *: support alter table rename table (#2503) 2017-01-22 12:39:54 +08:00
383f203735 *: add builtin function FLOOR (#2484) 2017-01-22 11:18:15 +08:00
72403f3578 *: added builtin function sqrt (#2493) 2017-01-18 12:43:59 +08:00
67313335fa *: Support builtin function field (#2449) 2017-01-15 11:10:39 +08:00
3bfac81a4e *: add builtin function FROM_DAYS (#2434) 2017-01-15 01:10:47 +08:00