Commit Graph

59 Commits

Author SHA1 Message Date
2ea6e1bff5 session,server: remove error for RollbackTxn (#9202) 2019-02-11 09:53:12 +08:00
63936cc1fa ddl: resolve the charset by the order: table->database->server (#9105) 2019-01-21 19:56:40 +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
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
edaec7bdaf *: move Statement and RecordSet from ast to sqlexec package (#7970) 2018-10-21 13:21:26 +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
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
f915575ebe server: add comment for #7252 (#7549) 2018-08-30 14:49:33 +08:00
4a3130216f server: fix type year has too many 0s in prepare/execute (#7525) 2018-08-30 11:28:34 +08:00
09fb68ae3b server: fix ComStmtSendLongData when data length is 0 (#7485) 2018-08-27 13:53:28 +08:00
9cf670a324 *: cut off duration.fsp in chunk (#7043) 2018-07-17 15:36:27 +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
f287451eed tidb: move tidb/*.go to session directory (#6062)
This change makes our top level directory clean.
2018-03-20 09:06:11 -05:00
631141b22c *: remove Next function for RecordSet (#6040) 2018-03-13 21:05:10 +08:00
649a7a3fb1 server: fix column length when convert column info for tinyint (#6008)
When column type is tinyint, ao checks both jdbc type and its precision in qualifiers. It needs precision in qualifiers to be 1 but tidb returned column's precision is 4(here precision is just column length). This PR fixes this.
2018-03-12 11:12:42 +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
8069afd38c server: optimize com_field_list, make use database faster. (#5677) 2018-01-18 22:17:39 +08:00
45f00fe55a server: close result set for FieldList (#5650) 2018-01-16 15:01:12 +08:00
0a8d91d896 server: in column info for "TypeBit", "Length" should not be multiplied by 4 (#5431)
* server: fix "Length" column info for TypeBit
2017-12-18 14:37:03 +08: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
b19f879fbf server: fix the length metadata of decimal column returned to client (#5249)
* fix #5246
2017-11-28 18:48:06 +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
cf5a22b5fd *: replace *ast.Row with types.Row (#5124) 2017-11-16 18:36:28 +08:00
ec9d1f0cc6 *: simplify RecordSet.Fields. (#5068) 2017-11-12 12:07:18 +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
29153d7b20 *: opentracing for Execute,ParseSQL,Compile,runStmt (#4929) 2017-10-31 05:13:59 -05:00
665f62929d *: make "unconvert" happy (#4700) 2017-09-30 15:53:01 +08:00
7adcc568e1 executor,mysql: fix #4540, Navicat for MySQL compability of show create table (#4544) 2017-09-18 20:26:57 +08:00
31a48f8d75 server: SSL/TLS support (#3716) 2017-09-07 13:36:28 +08:00
778b221d2e Support client specified collation (#4409) 2017-09-05 10:08:30 +08:00
a88ebb1cf6 *: use structure to store user identity (#4078)
*: use structure to store user identity
2017-08-14 03:37:36 -05:00
c8feff878f conn: fix database info leaking problem (#3699) 2017-07-11 17:39:35 +08:00
ebfacce977 *: set length and decimal for constant values (#3608) 2017-07-04 13:43:40 +08:00
31579bb3f0 Fix asyncGetTSWorker goroutine leak (#3291) 2017-05-22 16:53:31 +08: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
07952cb108 *: basic support show warnings. (#2724) 2017-02-24 16:29:39 +08:00