Commit Graph

61 Commits

Author SHA1 Message Date
69bfa3bf26 executor, server: reduce connect/disconnect log spam (#19308)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: goroutine <ngaut@users.noreply.github.com>
2020-08-25 19:17:51 +08:00
225c31ab86 executor: log when setting a global variable (#18457)
Signed-off-by: niedhui <niedhui@gmail.com>
2020-07-13 18:05:49 +08:00
838de2ad26 executor: fix wrong behavior of set charset statement (#16984) 2020-05-19 18:09:44 +08:00
ea2e215ff8 *: fix a bug caused by the wrong collation setting which leads to the wrong result of collation function (#17116) 2020-05-15 13:30:49 +08:00
6b034d4237 *: fix unexpected error when setting collate for database (#16283) 2020-04-17 18:25:33 +08:00
ff7413fedb planner, sessionctx : Add 'last_plan_from_cache' to help know whether sql's plan is from plan cache (#16321) 2020-04-17 17:15:21 +08:00
0fcece7bbc *: show correct result for system variable tidb_capture_plan_baselines (#16013) 2020-04-03 12:18:08 +08:00
17530c4059 expression: Support collate for user session variable (#15449) 2020-03-31 11:29:07 +08:00
6905549bf6 *: support more system variables in statement summary (#15508) 2020-03-25 16:07:10 +08:00
82829e1fa5 *: consolidate some settings related to the collation (#15553) 2020-03-23 17:38:31 +08:00
df6f378267 stmtsummary: add a switch to decide whether capture internal q… (#15461) 2020-03-20 17:39:11 +08:00
41142266b2 *: use SetString() for string instead of SetBytes() (#14989) 2020-03-02 15:48:10 +08:00
eb12799152 *: Collation should be set accordingly when setting string datum (#14757) 2020-02-20 23:01:53 +08:00
4cf5e7dd42 executor: fix error when set names default (#14511) 2020-01-17 16:24:20 +08:00
d439a57566 infoschema, util: add table events_statements_summary_by_digest_history (#13813) 2019-12-09 16:11:49 +08:00
18fbe2d483 infoschema, util: refresh statement summary table periodically (#13680) 2019-11-28 15:39:22 +08:00
2dfaf55410 sysvars: error code package for sysvar.go (#13366) 2019-11-12 13:01:29 +08:00
740b7769b0 *: support automatically create sql baselines (#12434) 2019-10-17 14:16:48 +08:00
4642b54de4 log: move autocommit varable value into connection info (#12310) 2019-10-09 14:01:20 +08:00
9064c49611 session, executor: support setting tidb_enable_stmt_summary in session scope (#12217) 2019-09-18 15:19:47 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00
0313cbbbde plugin: add audit plugin extension point (#9136) 2019-03-25 15:18:34 +08:00
f738ba24ad executor: replace logger with zap logger (#9521) 2019-03-14 15:14:38 +08:00
365264cd21 ddl: add restore deleted table (#7937) 2019-01-16 15:37:33 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
ffd9ba6659 gc_worker: Remove timezone name from the times that are saved in mysql.tidb (#8745)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2018-12-27 12:16:18 +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
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
a7fc9c323e distsql: disable read committed isolation level (#7280)
read committed isolation may cause inconsistent read.
Only Analyze request use read committed isolation level.
2018-08-06 13:07:06 +08:00
06021c7cfe remove types.Row interface (#7170) 2018-07-27 13:45:03 +08:00
f9a5686f9b executor: make set system variable log shorter (#7029) 2018-07-11 14:09:22 +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
6287cfb8c2 *: modify 'session transaction isolation level' to take effect once (#6175) 2018-04-04 18:39:44 +08:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
4cbdf1e69f executor: remove Next function for SetExec (#6005) 2018-03-16 22:33:27 +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
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
47cbc0bfce *: remove varsutil package, make Systems a private member of SessionVars (#5544) 2018-01-25 01:43:07 -06:00
dffc8c974d executor, parser: treat tx_isolation, transaction_isolation or tx_read_only, transaction_read_only as synonyms variable (#5700) 2018-01-22 23:15:17 +08:00
f1e89cde19 *: use lower-case of github.com/sirupsen/logrus (#5400)
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus

* vendor: update pd

* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
d209a36aaf executor: support Chunk for SetExecutor (#5397) 2017-12-14 09:28:49 +08:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
f828016e9f *: move sessionctx/domainctx.go to domain package (#5168) 2017-11-22 13:41:58 +08:00
81652dbeef *: remove returned value isNull in Row methods. (#5131) 2017-11-17 11:12:41 +08:00
cf5a22b5fd *: replace *ast.Row with types.Row (#5124) 2017-11-16 18:36:28 +08:00
03e23ee93a executor: refine the log msg when 'set character_set_results=null' (#5052) 2017-11-09 20:36:30 -06:00