Commit Graph

47 Commits

Author SHA1 Message Date
753e3da26a extension: support extension to listen connection events (#38624)
close pingcap/tidb#38623
2022-10-26 22:01:56 +08:00
b364cecdcc planner: use the unified parameters for plan cache (#36781) 2022-08-03 18:35:49 +08:00
c836501f89 server, session: report an error when the session states cannot be fetched (#35892)
close pingcap/tidb#35866
2022-07-04 12:31:00 +08:00
55a38a1c76 *: tiny clean up the RecordSet NewChunk() method (#29232) 2021-11-02 20:02:51 +08:00
36bc41ad05 *: reduce object allocation by reuse chunk column (#29064) 2021-10-28 13:14:48 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
9b16427628 server: prefetch point-get keys for multi-statement queries. (#18155) 2020-06-23 13:13:18 +08:00
dc139aedb4 server,session: code refactor for multiple statements in one query (#16056) 2020-04-14 20:16:43 +08:00
df6f378267 stmtsummary: add a switch to decide whether capture internal q… (#15461) 2020-03-20 17:39:11 +08:00
74eaf327e9 *: log each com_stmt_fetch separately (#11987) 2019-09-25 17:57:16 +08:00
cb23b524ac *: directly save prepare execute args as datums in binary proto (#10884) 2019-07-02 13:49:06 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
a57b6e60a6 *: Add support for MAX_EXECUTION_TIME. (#10541) 2019-06-25 01:18:11 +08:00
f67352d238 *: print an expensive log when a query exceeds time threshold (#10350) 2019-06-05 20:38:11 +08:00
2ea6e1bff5 session,server: remove error for RollbackTxn (#9202) 2019-02-11 09:53:12 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
7528a059cf executor/server/session: add extra info message sent to mysql client (#8285) 2018-12-19 15:32:49 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
48704b8420 *: fix Command and Time in show processlist (#7844) 2018-10-12 14:06:54 +08:00
05b37de16e *: use chunk grow for simple executor (#7540) 2018-09-27 09:07:51 +08:00
1fbcc10650 server,mysql: support server-side cursors (#6648)
Implement server-side cursors by handling COM_STMT_FETCH command.
The client indicates that it wants to use cursor
by setting a flag in COM_STMT_EXECUTE
Please refer to https://dev.mysql.com/doc/internals/en/com-stmt-execute.html
Subsequently, the client acquires result rows repeatedly by COM_STMT_FETCH,
which will carry stmt-id and fetch size.
Please refer to https://dev.mysql.com/doc/internals/en/com-stmt-fetch.html
This commit only support forward-only, read-only cursor
2018-06-22 16:10:08 +08:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
631141b22c *: remove Next function for RecordSet (#6040) 2018-03-13 21:05:10 +08:00
a3bf058304 *: 1. remove EnableChunk 2. implement Next in baseExecutor to return nil (#5988) 2018-03-09 17:40:11 +08:00
913db283ea *: remove SupportChunk() from interface ResultSet and RecordSet (#5969) 2018-03-07 19:36:15 +08:00
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
6ee266d0ca executor: UpdateExec support NextChunk (#5372) 2017-12-14 15:32:06 +08:00
a7b0a1f915 server,tidb: move cancel function from session to clientConn (#5346) 2017-12-09 15:27:58 +08:00
a2fb741191 *: Chunk add context parameter (#5348) 2017-12-09 11:23:40 +08:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
02f6bb27c7 *: remove goCtx from session struct (#5174)
1. go context should not be stored
2. change Executor interface to Open(goctx.Context)
3. many other changes forced by this refactor
2017-11-22 02:17:38 -06:00
a32b8dbcf6 *: use Chunk for TableReader. (#5142) 2017-11-21 10:08:50 +08:00
8fd5c7de6e server: use types.Row to write result set. (#5056) 2017-11-10 15:41:02 +08:00
0977fd07e6 *: begin opentracing from dispatch() and change interface to Execute(ctx, sql) (#5027) 2017-11-07 02:52:15 -06:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
31a48f8d75 server: SSL/TLS support (#3716) 2017-09-07 13:36:28 +08:00
a88ebb1cf6 *: use structure to store user identity (#4078)
*: use structure to store user identity
2017-08-14 03:37:36 -05:00
a623e670e6 *: implement "kill tidb xxx" statement (#2768) 2017-03-08 13:32:22 +08:00
87d39986fe *: show processlist (#2744) 2017-03-01 14:39:13 +08:00
b5c9650b5a server: rename IStatement to PreparedStatement (#2358) 2016-12-30 20:59:58 +08:00
0668c5fa03 server: rename IContext to QueryCtx (#2356)
* server: rename IContext to QueryCtx
2016-12-30 19:57:56 +08:00
b180334231 server: fix issue 2346 (#2351)
ComStmtExecute packet just send params type information the first time,
so PrepareStmt should save it for further use.
2016-12-29 23:28:17 +08:00
06f0c4cbeb server/driver.go: fix typo 2016-08-31 02:28:42 -05:00
ed4649e85d *: Support load data local (#1634) 2016-08-30 09:38:37 +08:00
5ebdc1c765 server: support MULTI_STATEMENTS and MULTI_RESULTS capability (#1628)
only handle COM_QUERY currently, COM_STMT_PREPARE would be supported later
http://dev.mysql.com/doc/internals/en/capability-flags.html#flag-CLIENT_MULTI_STATEMENTS

implement set option in client/server protocol
http://dev.mysql.com/doc/internals/en/com-set-option.html
2016-08-26 12:27:52 +08:00
0ecb4da39d *: migrate to vendor (#1175) 2016-04-28 16:57:18 +08:00