Commit Graph

57 Commits

Author SHA1 Message Date
7de4876888 session: dom.Close() in boostrap_test (#31973)
ref pingcap/tidb#31966
2022-02-07 17:47:35 +08:00
60f0948fb4 session: fix data race in the TestUpgradeVersion83 (#31889)
close pingcap/tidb#31831
2022-01-23 17:27:46 +08:00
4bda04f15c planner: introduce historical statistic dumping triggered by analyze (#31032)
close pingcap/tidb#18745
2022-01-21 16:35:46 +08:00
acff9c3cff *: Change stmt summary and capture plan baselines to GLOBAL only (#30756) 2022-01-12 13:29:42 +08:00
807ca05230 sessionctx: enable IndexMerge by default (#30650)
close pingcap/tidb#29597
2021-12-27 12:19:49 +08:00
4dc385ce8b test: merge serial tests in ddl, infoschema, session, store, table, telemetry and types (#30874) 2021-12-23 20:01:47 +08:00
2f9d591ef7 session: migrate test-infra to testify for tidb_test.go and bootstrap_test.go (#28555) 2021-10-11 10:19:24 +08:00
6eb02fbe5e session: support references on column (#28546) 2021-10-07 12:23:22 +08:00
75ee932f00 session: update Host type to char(255) in mysql.* tables for compatible with mysql-8.0 (#27887) 2021-09-13 11:18:39 +08:00
6267e0fbe3 session: change the global variable tidb_stmt_summary_max_stmt_count value from 200 to 3000 when upgrade (#27321) 2021-09-10 21:58:39 +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
a8adc4cf8e *: fix many leaks of the test case (#26909) 2021-08-06 13:55:12 +08:00
350cbd1f69 session: tiny changes to reduce object allocations (#26244) 2021-07-19 17:53:34 +08:00
a8b1f687e0 session: fix a bug when updating duplicate bindings (#25168) 2021-06-04 22:40:28 +08:00
c287bcb48c executor: Add plugin column to mysql.user (#24894) 2021-05-28 16:33:36 +08:00
f1521632e2 executor: fix a concurrent-access problem caused by accessing a single parser object in session concurrently (#24338) 2021-04-29 18:11:57 +08:00
3cf2bf9120 session: add session scope for tidb_enable_clustered_index (#23704) 2021-03-30 23:31:24 +08:00
5a4d89416b session: fix bug user privileges change after upgrade from 4.0.11 to 5.0 (#23403) 2021-03-25 13:07:23 +08:00
2bea06ed23 util, types: don't let SPM be affected by charset (#23161) 2021-03-12 22:39:10 +08:00
1d99292455 *: hide the system variables tidb_track_aggregate_memory_usage (#23184) 2021-03-12 17:59:21 +08:00
67e4528018 executor: initialize expensive query handler on domain creation (#21340) 2021-03-11 16:10:55 +08:00
6f250b625e *: fix a bug that collation is not handle for text type (#23045) 2021-03-03 22:04:54 +08:00
8a490e96b5 parser: quote identifier with backquote when getting SQL digest (#22893) 2021-02-26 14:54:54 +08:00
dd234b7e32 session: fix the duplicate binding case when updating bind info (#22367) 2021-01-12 16:30:59 +08:00
78529e86eb session: fix two cases when updating bind info (#22338) 2021-01-11 15:55:58 +08:00
51794e9d30 *: rewrite origin SQL with default DB for SQL bindings (#21275) 2021-01-06 16:28:29 +08:00
c40d7833b8 config, session: promise the compatibility of oom-action when upgrading (#22102) 2020-12-30 21:14:14 +08:00
e573ed64a6 bootstrap: add mysql.user columns for parser#1121 (#21856) 2020-12-21 16:07:31 +08:00
c201eb7335 config, session: keep the default value of mem-quota-query when upgrade from 3.0 to 4.0.9+ (#21305) 2020-11-26 17:12:51 +08:00
269494e3de *: Move sysvar validation to struct (3 of 3) (#20521) 2020-11-12 13:22:42 +08:00
fa81ec51b4 *: refactor sysvars to allow component registration (#20289) 2020-09-29 14:04:24 +08:00
31bd7d8b3d planner: rename optimizer hint TOPN_TO_COP() to LIMIT_TO_COP() (#20022) 2020-09-17 14:23:23 +08:00
468b8c6f7b executor, privilege: introduce a new privilege for the set config statement (#16847) 2020-04-27 14:17:38 +08:00
9bda71df3b infoschema, session: forbid statement summary related global v… (#16652) 2020-04-23 12:35:25 +08:00
41142266b2 *: use SetString() for string instead of SetBytes() (#14989) 2020-03-02 15:48:10 +08:00
c7cda1a0c9 session: fix unexpect '0' written to new_collation_enabled value. (#14842) 2020-02-19 17:03:46 +08:00
713099c1ad *: add a configuration entry to control if new collations are enabled (#14734)
Configuration entry `new_collations_enabled_on_first_bootstrap` is
added, which determines if the new collations can be enabled when a
TiDB cluster is initialized for the first time.
2020-02-17 15:56:24 +08:00
4ed347cff8 planner,session: add Reload and File privilege, check Reload for the flush statement (#14319) 2020-01-09 19:59:12 +08:00
1335ffb6b7 *: support read consistency isolation level in the pessimistic transactions (#14087) 2019-12-24 21:24:39 +08:00
cd07c4550d *: support certificate based authentication (#13955) 2019-12-23 11:37:29 +08:00
2082b68a41 test: optimize session&planner/core unit test (#13580) 2019-11-27 17:25:55 +08:00
5bf03c8df4 executor: add SHUTDOWN command and privilege check (#12804) 2019-10-21 21:49:56 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
eed6a9efa6 session: init expensiveQueryHandle immediately after domain be initiated (#10845) 2019-06-19 13:47:41 +08:00
c48ac8af18 session,privilege: fix account_locked default value for root (#9448) 2019-02-25 21:14:17 +08:00
0ee8899a6d session,privilege: upgrade TiDB, prepare data for RBAC (#9377)
RBAC(role based access control) needs the following data:
* Add account_locked column to mysql.user
* Add mysql.role_edges table
* Add mysql.default_roles table
* Add Create_role_priv and Drop_role_priv privilege
2019-02-22 18:00:01 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
8ddbd7062e session: fix bootstrap error in ANSI sql_mode (#8353) 2018-11-20 11:25:49 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00