5b689e8c5b
server: fix insert zero timestamp bug with prepared statement ( #7506 )
2018-08-28 13:36:36 +08:00
09fb68ae3b
server: fix ComStmtSendLongData when data length is 0 ( #7485 )
2018-08-27 13:53:28 +08:00
97b60c9757
server: fix enum type flag ( #7438 )
2018-08-20 19:06:52 +08:00
d567770076
server: fix prepare result for zero timestamp/time/datetime ( #7415 )
2018-08-20 15:25:51 +08:00
0f7bc02700
docs: remove not worked MVCC api ( #7400 )
2018-08-17 18:31:32 +08:00
57f191408c
server: fix column info for resultType/flag for enum&set type. ( #7417 )
2018-08-17 10:29:34 +08:00
6e7d75299d
test: refine test ( #7414 )
2018-08-16 17:05:59 +08:00
9fc67b9a9f
store TiDB server info to PD and add http api handle ( #7082 )
2018-08-15 12:51:00 +08:00
0fa27a4619
*: fix tests failed on Go 1.11beta ( #7178 )
...
Many of the failed tests are due to misuse of format placeholder.
2018-07-30 11:36:33 +08:00
06021c7cfe
remove types.Row interface ( #7170 )
2018-07-27 13:45:03 +08:00
3299f860ff
*: use chunk.Row instead of types.DatumRow in test files ( #7139 )
2018-07-24 21:45:33 +08:00
a7ae09b8e1
metrics,server: add a get_token_duration_seconds metrics ( #7110 )
...
* metrics,server: add a get_token_duration_seconds metrics
2018-07-23 14:29:19 +08:00
ce0843e4f3
binlog: fix bug in load data ( #7074 )
2018-07-19 12:58:57 +08:00
9cf670a324
*: cut off duration.fsp in chunk ( #7043 )
2018-07-17 15:36:27 +08:00
43f0c1ee70
ddl: add slow operations log to add indices, make trouble shooting easier. ( #7060 )
2018-07-17 09:42:58 +08:00
f9a5686f9b
executor: make set system variable log shorter ( #7029 )
2018-07-11 14:09:22 +08:00
e28a81813c
*: check the schema-validity when the DDL fails ( #6797 )
2018-07-09 17:35:04 +08:00
eeeb092450
server: fix binary numeric type overflow ( #6922 )
2018-07-09 16:46:56 +08:00
7682a74d15
*: kill one's own connection doesn't require SUPER privilege ( #6954 )
...
`kill tidb connID`, if the user is the owner of that connection, there
is no need to check the SUPER privilege.
SessionManager interface is slightly modified.
2018-07-05 20:17:17 +08:00
8db5811cb6
*: 'load data' should not use latches ( #6927 )
...
'load data' is not retryable when it meets conflicts, while latches may result in
false positive transaction conflicts. so enable latches will lead to 'load data'
abort abnormally, even there are no conflicts.
2018-07-02 11:53:12 +08:00
ef3d04087d
server: fix COM_FIELD_LIST response bug that make mariadb-client crash during use db ( #6918 )
2018-06-28 13:40:27 +08:00
0fbb980f9b
stats: refine stats delta update ( #6808 )
2018-06-26 13:51:23 +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
d2799801ae
test: fix leak test ( #6822 )
...
make sure close dom/store in all test.
2018-06-12 17:14:22 +08:00
96a5109ebb
types: handle NULL datum if we need convert it to string. ( #6761 )
...
* types: handle `NULL` when we need to
2018-06-06 20:15:48 +08:00
13050b4d60
server: fix fail to fetch profile by pprof ( #6747 )
2018-06-04 22:06:18 +08:00
c0cb89ea6b
server: fix CI nil pointer panic ( #6733 )
...
server.ShutDown(ctx), it would panic if ctx is nil, because http package
calls <-ctx.Done()
replace ShutDown() with Close()
2018-06-02 22:18:13 +08:00
1a896a3b11
server: remove once.Do for HTTP server in tests ( #6691 )
2018-06-01 15:28:57 +08:00
93efc51b96
*: unify the connection ID format in log ( #6670 )
...
Makes tracing the events of a session easier.
2018-05-29 00:31:16 +08:00
2bcef0fe71
server: support ComChangeUser ( #6623 ) ( #6638 )
2018-05-24 19:09:45 +08:00
87ce884b2e
*:check max/min timestamp bound with timezone aware ( #6581 )
...
- mytime: max/min configure with UTC tz, convert to local tz during process starting, convert it to session tz before checking bound.
- time: so `check()`/`add()` need force pass `StatementContext` parameter.
- builtin_time: pass `StatementContext` from `b.ctx.sessionVars` into check/add.
- dump: also set timezone for StatementContext with UTC.
- *_test/mock: fix test case, make mock context with stmt TimeZone.
- add testcase for checkTimestamp and mytime convert timezone.
2018-05-24 15:27:38 +08:00
ac5020dc33
server: do not log write error during hand shake. ( #6605 )
...
If the handshake failed, we write error message to the connection, if the write returns error, we don't need to log it.
2018-05-22 22:34:49 +08:00
879db103b3
http: support change log level. ( #6604 )
...
So we don't need to restart the server to change the log level, useful for debug.
2018-05-22 22:04:09 +08:00
65131a44a0
server: support binary time type ( #6516 )
2018-05-20 11:13:02 +08:00
8a2a20e181
store/tikv: more friendly error log for WriteConflict ( #6457 )
2018-05-18 13:47:24 +08:00
fecd91a530
server: do not log on handshake error ( #6552 )
...
Load balancers connects to TiDB server and close immediately, we don't need to log them.
2018-05-15 13:45:11 +08:00
11e7f5bf97
binloginfo: fix a data race on global.Config() in the unit test ( #6548 )
2018-05-14 22:19:11 -05:00
7f2b3bd899
*: Add an option to stop writting binlog when TiDB meets binlog error ( #6503 )
...
Add an option to stop writting binlog when meets binlog error
Provide http interface to recover binlog service
2018-05-11 09:50:15 -05:00
84b08bf2f6
http: revert log_level change ( #6525 )
...
log level is not accessed atomically in this version, cause race issue.
2018-05-10 16:36:34 +08:00
8e59d40831
sever: add HTTP API to change log level dynamically. ( #6513 )
2018-05-09 19:31:01 +08:00
4185e53006
tikv/txn: support local latch in transaction ( #6418 )
2018-05-07 10:57:01 +08:00
e5ab00e5e3
http: scatter table API for table handler ( #6378 )
...
* http: scatter table API for table handler
2018-05-03 20:09:14 +08:00
8729424629
stats: fix dump stats ( #6285 )
2018-04-26 17:40:10 +08:00
d3290b936b
HTTP API: support query the DDL history ( #6245 )
2018-04-16 11:15:48 +08:00
f994f4f987
*: clean up MvccStore in mocktikv ( #6256 )
...
* *: clean up MvccStore in mocktikv
2018-04-11 10:30:27 +08:00
ccf6da1a46
*: rename NextChunk to Next ( #6214 )
2018-04-03 20:00:30 +08:00
87405c8408
server: fix a goroutine leak in unit test ( #6183 )
2018-03-29 19:49:34 +08:00
c398110154
*: improve performance of DecodeBytes in DecodeOneToChunk ( #6135 )
2018-03-29 19:11:44 +08:00
951bc41566
server: use scientific notation to format float value. ( #6160 )
2018-03-28 19:45:25 +08:00
96a51da57c
* Add conn ID to the transaction log ( #6115 )
2018-03-26 20:13:07 +08:00