Commit Graph

8026 Commits

Author SHA1 Message Date
740d9393e8 parser: add TablesTerminalSym nonterminal symbol desc (#3578)
* parser: add TablesTerminalSym nonterminal symbol desc
2017-06-29 20:42:00 +08:00
bffbc00302 *: log some crucial sql for user/privilege related operations. (#3557) 2017-06-29 19:01:16 +08:00
cdead55aa8 expression, executor: use baseBuiltinFunc's return type as ScalaFunction's return type when it is updated during type inference (#3571) 2017-06-29 18:17:42 +08:00
284ac94a69 expression, executor: fix unhex(binary) error (#3569) 2017-06-29 18:07:37 +08:00
4c3be8a9ad *: Support retrun the error of ErrNoDB (#3572) 2017-06-29 17:41:58 +08:00
f265357476 parser: add syntax support "lock table" and "unlock table" (#3570)
before this pr, TiDB can't support sql like `lock table t1 write, t2 read`,
it just support `lock tables t1 write, t2 read`
2017-06-29 17:13:44 +08:00
e4b761071c expression, executor: fix hex(binary) (#3567) 2017-06-29 16:43:51 +08:00
d0358ceb1c executor, statistics: remove useless code and rename file name. (#3564) 2017-06-29 14:52:19 +08:00
b780d6afef plan: flatten row op row (op = GE, GT, LE, LT) in expression_rewriter (#3528) 2017-06-29 13:55:21 +08:00
3ab3a61b5a plan: pick all possible useful indices for merge join. (#3473) 2017-06-28 17:37:47 +08:00
6b6b03dc29 *: add a priority option to transaction, use high priority for meta (#3547) 2017-06-28 16:01:43 +08:00
b5e6c0291a plan, executor: fix multi-update. (#3531)
* plan, executor: make multi-update be compatible with MySQL.
2017-06-28 13:53:06 +08:00
d0e859174a ddl: Break campaignLoop when closing DDL (#3553)
* ddl: break the loop when closing
2017-06-28 10:54:20 +08:00
76c07f6abb plan, ddl: add validate in checkCreateTableGrammar, to fail creating … (#3554)
* plan, ddl: add validate in checkCreateTableGrammar, to fail creating an empty table

* *: Tiny cleanup

* ddl: add ddl.ErrWrongTableName comment

* ddl: rename errWrongTableName to ErrWrongTableName, for validator.checkCreateTableGrammar use.
2017-06-28 00:14:44 +08:00
88189ab961 executor, expression: refine substr handle null (#3555) 2017-06-27 22:12:13 +08:00
45490a02b9 parser: Support alter table rename table without to (#3552) 2017-06-27 20:04:25 +08:00
ea05bf088d expression: default value from "timestamp" session variable is in UTC timezone (#3544) 2017-06-27 15:07:42 +08:00
8aa1a632ea expression, executor: rewrite the builtin func ascii using new methods (#3537) 2017-06-27 14:47:48 +08:00
c09cb14238 store/tikv: add RC isolation level. (#3535) 2017-06-27 12:02:05 +08:00
11a1767e71 *: Get ddl owner ID (#3525) 2017-06-27 11:24:50 +08:00
77c7e0037a tidb: add some privilege columns to mysql.db (#3532)
* tidb: add some privilege columns to mysql.db

Create_tmp_table_priv
Lock_tables_priv
Create_view_priv
Show_view_priv
Create_routine_priv
Alter_routine_priv
Execute_priv
Event_priv
Trigger_priv
2017-06-27 10:18:11 +08:00
5b92ee27ed storage: disable pushdown json functions in tikv. (#3543) 2017-06-26 22:40:45 +08:00
2b4a3ce5e6 parser: parse "select HIGH_PRIORITY ..." statement (#3466) 2017-06-26 17:19:10 +08:00
eea5cb2237 *: tiny clean up (#3542) 2017-06-26 10:47:52 +08:00
e773fa5b79 builtin: IsIPv4Compat function (#3538) 2017-06-26 10:38:55 +08:00
dcf0da93fa util/types: fix parsing datatime 00-00-00 (#3536)
00-00-00 should not be adjust year to 2000-00-00
2017-06-23 18:20:15 +08:00
4db09e0940 expression, executor: rewrite built-in func makeDate using new expression evaluation architecture (#3533) 2017-06-23 15:52:36 +08:00
ccd261010d ddl: update binlog position and update logs (#3534) 2017-06-23 14:41:51 +08:00
b9088c26b7 codec: simplify json codec. (#3524) 2017-06-23 14:04:09 +08:00
8a31944402 json: be more compatible with MySQL' document instead of implement. (#3521) 2017-06-23 11:25:47 +08:00
d1328e1b72 *: update vendor (#3526) 2017-06-22 23:37:05 +08:00
b535fd0b7e *: remove the useless variable of TiDBSkipDDLWait (#3527) 2017-06-22 16:30:18 +08:00
f331160eb9 expression, executor: rewrite built-in func length using new expression evaluation architecture (#3519) 2017-06-22 15:56:22 +08:00
caeb777107 domain: change lease in schema validator test to 5 millisecond (#3522)
Sometimes this test fail in CI, when time.Ticker has a low precision.
Change the lease value longer to make it more robust
2017-06-22 14:47:49 +08:00
6f1bc82bc0 expression: wrap arguments when new built-in function (#3520) 2017-06-22 11:56:24 +08:00
eac2769606 *: change the format of aggregation's result (#3483) 2017-06-21 18:19:03 +08:00
def034cf6f ranger: add a more common method to calc range. (#3489) 2017-06-21 14:10:40 +08:00
af5f3f551e expression: remove inferType interface of functionClass (#3518) 2017-06-21 10:11:46 +08:00
11247bf083 statistics: no longer pass inAndEqCnt to calc pseudo index row count (#3515) 2017-06-20 22:19:46 +08:00
9233ccfe6e util/types:Handle out of range value when load data (#3508) 2017-06-20 19:36:51 +08:00
db8ff90334 json: fix unquote bug and add test cases. (#3507) 2017-06-20 18:50:25 +08:00
b7e7041f6a vendor: update kvproto (#3514) 2017-06-20 17:50:25 +08:00
247bf4afa2 expression, distsql: pushdown json_* functions. (#3492) 2017-06-20 17:23:07 +08:00
d1bb107e62 json: fix a bug in path_expr. (#3504) 2017-06-20 16:36:58 +08:00
0e0e48e6a6 executor, util: fix invalid time format "YY-MM-DD HH:MM"(#3509) (#3511) 2017-06-20 15:40:35 +08:00
379914a5af *: fix timestamp column data and index inconsistent involving timezone (#3497) 2017-06-20 15:22:50 +08:00
4f56ece779 *: a little fix and add 3 functions. (#3486) 2017-06-20 14:45:12 +08:00
a5d14645d0 *: Fix add index after add column with default value (#3510) 2017-06-20 13:32:22 +08:00
e36eb6fd96 fix order in contributors (#3500) 2017-06-19 23:55:05 -05:00
444983cdfd *: Fix a DDL bug about wait time (#3498)
* *: fix a DDL bug about wait time
2017-06-20 11:30:22 +08:00