Commit Graph

22 Commits

Author SHA1 Message Date
47316499fd plan: add cache for statistics table (#2398) 2017-01-08 01:09:23 +08:00
64484a4257 *: refactor context.Context (#2298)
Make transaction life cycle under control, prepare for correctly handle schema out of date error.
The old `GetTxn(forceNew boll)` is replaced by `Txn` and `NewTxn`,
`CommitTxn` and `RollbackTxn` is removed.
2016-12-23 13:02:41 +08:00
e149b0ce87 *: rewrite the logic of do statement. (#2215) 2016-12-09 20:18:12 +08:00
f42d3b2bcc *: Support the statement of "alter user" (#2144) 2016-12-03 14:01:38 +08:00
fa4bdc766d executor: support the statement of 'set password ... ' and fix issue 2153 (#2155) 2016-12-02 18:34:20 +08:00
73f2ffad90 varsutil: remove dependency on 'types' for 'variable' package (#2095)
* varsutil: remove dependency on 'types' for 'variable' package

'variable' package will be used in 'types', remove dependency on 'types' by
moving functions to a new 'varsutil' package.

Also extract 'SetExec' from 'SimpleExec'
2016-11-25 13:44:49 +08:00
0af8520a78 sessionctx/variable: remove dependency on context package. (#2064)
Makes using session variable easier and faster.
Prepare for use session variable to handle data truncated error.
2016-11-23 14:39:48 +08:00
727f9e37d2 sessionctx/variable: fix default tx_read_only variable value. (#1892)
MySQL show this variable as "ON"/"OFF" in documentation, but the real value returned is  "1"/“0”.
2016-10-29 10:15:30 +08:00
ba4d6bae37 *: support drop user. (#1854) 2016-10-24 21:01:02 +08:00
e0e5a5821b executor: support creating user with no password. (#1841) 2016-10-18 20:12:53 +08:00
a3eac844ae *: Support set names binary (#1578) 2016-08-15 22:25:23 +08:00
60d0c97721 Hanfei/newplan (#1513) 2016-07-28 14:11:57 +08:00
b33ab24109 *: Support set variable to default value. (#1481)
To set a SESSION variable to the GLOBAL value or a GLOBAL value to the compiled-in MySQL default value, use the DEFAULT keyword.
See http://dev.mysql.com/doc/refman/5.7/en/set-statement.html
2016-07-22 10:23:03 +08:00
a75f677900 support set variable, prepare and insert stmt. (#1359) 2016-06-29 18:26:47 +08:00
b8bf59592f executor: implement ANALYZE TABLE (#1327) 2016-06-20 11:13:16 +08:00
67378982bf parser: add ANALYSE TABLE syntax (#1323) 2016-06-15 16:21:39 +08:00
f09574d826 *: support sql mode (#1263) 2016-05-30 13:16:41 +08:00
08034540f0 *: Add leak test
* *: add leak test and tiny clean up

* *: unify test format and add leak test

Conflicts:
	store/localstore/compactor_test.go
	mysql/error_test.go
*: add leak test
2016-04-07 20:53:45 +08:00
cda31ae7ab executor: Fix set multiple variables bug
Fix: https://github.com/pingcap/tidb/issues/998
Refactor some old code.
2016-03-23 17:42:55 +08:00
237c4f6be6 executor: support CreateUserStmt, SetPwdStmt. 2016-02-16 16:13:09 +08:00
0b14ae4c3e executor: support DO, BEGIN, COMMIT, ROLLBACK. 2016-02-16 11:30:18 +08:00
db2328b821 executor: split test file. 2016-02-15 19:45:24 +08:00