Commit Graph

56 Commits

Author SHA1 Message Date
c30e8320d8 *: correct use require (#31904)
ref pingcap/tidb#31716
2022-02-07 18:11:35 +08:00
203ab22982 *: move the functions that only used in tests (#31929)
ref pingcap/tidb#28720
2022-01-24 22:08:11 +08:00
1a146fabd7 variables: add constraints on tidb_super_read_only when tidb_restricted_read_only is turned on (#31746)
close pingcap/tidb#31745
2022-01-20 12:13:45 +08:00
a0e31aa987 *: fix data race in the CheckMb4ValueInUTF8 (#31781)
close pingcap/tidb#31780
2022-01-19 17:33:45 +08:00
f3839df729 sysvar: add value limitation for net_buffer_length (#31675)
close pingcap/tidb#31421
2022-01-14 17:37:42 +08:00
acff9c3cff *: Change stmt summary and capture plan baselines to GLOBAL only (#30756) 2022-01-12 13:29:42 +08:00
xhe
1ffd6c0738 sysvar: bypass validation for noop variables (#31566)
close pingcap/tidb#31538
2022-01-11 22:43:42 +08:00
fac8bf384f *: Remove variable tidb_enable_alter_placement (#31066)
* *: Remove variable `tidb_enable_alter_placement`
2022-01-06 11:19:39 +08:00
807ca05230 sessionctx: enable IndexMerge by default (#30650)
close pingcap/tidb#29597
2021-12-27 12:19:49 +08:00
891517f23e config: make EnableSlowLog atomic (#30346) 2021-12-03 11:47:54 +08:00
f5af99e696 sessionctx/variable: make lc_time_names read only (#30084) 2021-11-26 13:59:51 +08:00
bdfd3f6974 *: refine CharsetAndCollation (#29561) 2021-11-12 17:41:05 +08:00
62e96720b6 variable: add support for timestamp (#29447) 2021-11-10 00:49:05 +08:00
42b0bec86d sessionctx/variable, executor: introduce a limit on "thread" config (#28842) 2021-10-22 11:42:46 +08:00
63ec28a35a variable: Use GOOS/GOARCH for version_compile_* (#28958) 2021-10-20 03:44:42 +08:00
e6c600ad16 *: always convert sysvar values when out of range (#25686) 2021-10-13 10:37:27 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
042f498756 sessionctx/variable: Fix performance regression in NewMockGlobalAccessor (#28303) 2021-09-30 11:12:47 +08:00
b50474c4e9 variable: add support for identity (#28449) 2021-09-29 01:14:47 +08:00
ca7ba5a4e5 executor, session, sessionctx/variable: add validate function for sysval sql_auto_is_null (#28247) 2021-09-23 19:54:46 +08:00
bfbea9c3ef variable: Add support for mock globalvars (#26990) 2021-09-23 02:10:46 +08:00
4107115026 variable: add support for last_insert_id (#28072) 2021-09-21 01:10:45 +08:00
b52f3efbe9 sessionctx: Fix SET GLOBAL tidb_skip_isolation_level_check=1 (#27898) 2021-09-14 12:32:41 +08:00
e215f187c5 sessionctx: Support global variable tidb_replica_read (#27622) 2021-09-10 21:48:38 +08:00
1750d49a0b sessionctx/variable: migrate test-infra to testify (#27848) 2021-09-08 12:14:57 +08:00
79f0b495e5 session, variable: move gc special sysvars to getters/setters (#24896) 2021-08-18 21:30:00 +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
01ac21c194 variable: add tests for setter/getter funcs (#26634) 2021-07-27 14:58:15 +08:00
8642902337 variable: improve code coverage, fix unstable test (#26586) 2021-07-27 14:02:15 +08:00
a542c5868b sessionctx/variable: avoid SysVar clone every time when visiting system variable (#26308) 2021-07-19 18:01:34 +08:00
8f8dcf3a06 *: temporarily skip some unstable test cases (#26149) 2021-07-12 20:21:32 +08:00
851fb3cce9 sessionctx, variable: add skip name resolve (#25464) 2021-06-22 10:44:53 +08:00
fce4dde1cd variable, main: make sure default values for sysvars validate (#24807) 2021-06-03 22:20:26 +08:00
cd10f944b2 variable: Add IsNoop to sysvar struct (#24963) 2021-05-31 14:27:36 +08:00
02049548a9 variable: Add getters for global/session scope (#24647) 2021-05-25 13:07:34 +08:00
375e438be4 session, variable: invert builtinGlobalVariable from allow to deny list (#24836) 2021-05-24 12:29:33 +08:00
1136126991 variable: fix sysvar datarace with deep copy (#24732) 2021-05-19 23:55:42 +08:00
c8bc701170 *: misc cleanups to variable package (#24507) 2021-05-11 13:23:38 +08:00
3b935289ae variable: improve test coverage (#24503) 2021-05-10 12:04:45 +08:00
82ea46d652 sessionctx/variable: Improve sysvar test coverage, collation normalization (#24472) 2021-05-08 11:18:43 +08:00
075df515e4 executor, session, variable: Move deprecation, synonyms, scope validation to sysvar struct (#24280) 2021-05-07 23:12:41 +08:00
1a6242bcec variable: Add tests for sysvar registration, int/enum validation (#24277) 2021-04-26 18:41:56 +08:00
269494e3de *: Move sysvar validation to struct (3 of 3) (#20521) 2020-11-12 13:22:42 +08:00
106b04ddab *: Fix sysvars to native type in @@ context (#20394) 2020-10-19 14:13:43 +08:00
449587a085 *: using standard error to replace terror (#19425) 2020-09-08 20:15:51 +08:00
f033927481 sessionctx/variable,ddl: change @@tidb_enable_table_partition default value and update the semantic (#16497)
Before:
auto means enable for implemented feature and disable for others
on means always enable, no matter the feature is implemented or not

After:
auto and on both means enable for implemented feature and disable for others
2020-04-20 16:46:25 +08:00
2dfaf55410 sysvars: error code package for sysvar.go (#13366) 2019-11-12 13:01:29 +08:00
0f55274760 infoschema, session: support for events_statements_summary_by_digest (#12017) 2019-09-12 19:53:16 +08:00
523b93651d Add follower read support to TiDB (#11347) 2019-08-16 13:26:17 +08:00
96c6ea1ca9 *: support 'tidb_txn_mode' session variable. (#10574) 2019-05-24 00:50:04 +08:00