Commit Graph

89 Commits

Author SHA1 Message Date
7d8c45aa4d planner: provide a unified interface to set and get user variables and types (#37046)
ref pingcap/tidb#36598
2022-08-11 19:18:50 +08:00
0b1d3e0da3 *: cleanup sysvar API usage (#36640)
close pingcap/tidb#36639
2022-08-02 07:54:04 +08:00
6b83cdbea2 executor: handle NULL values properly when LOAD DATA INFILE (#36124)
close pingcap/tidb#34358
2022-07-29 13:03:12 +08:00
5c9ad77ae1 *: add support for disabling noop variables (#35496)
close pingcap/tidb#8895
2022-06-21 14:10:36 +08:00
d981c0e06a sysvar: add INSTANCE scope for system variable (#32888)
ref pingcap/tidb#32887
2022-03-16 11:15:52 +08:00
52fa48ce2b sessionctx,executor: Revert "sessionctx,executor: disallowed set null to sysvar" (#32988)
close pingcap/tidb#32987
2022-03-10 23:13:51 +08:00
77730b6d9e sessionctx,executor: disallowed set null to sysvar (#32879)
close pingcap/tidb#32850
2022-03-10 01:13:49 +08:00
3d9196ddea *: allow setting @@tidb_tso_client_batch_max_wait_time to a float millisecond (#29699) 2021-11-14 03:29:05 +08:00
1f39a9f81d *: add two session variables to control the PD client option (#29120) 2021-10-31 00:12:49 +08:00
676683383b *: add support for removed sysvars (#28931) 2021-10-22 11:32:46 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
417c7358ef session: fix set session variable make tidb_snapshot unwork (#28677) 2021-10-09 14:43:23 +08:00
2ae0bb73d7 *: Move some infoschema operations to temptable package (#27818) 2021-09-07 21:36:57 +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
xhe
c8bcc3b92f executor: only forbid setting tidb_snapshot in stale txn (#25794) 2021-07-12 11:25:32 +08:00
de3c30b62c *: support create a local temporary table (#25851) 2021-07-05 11:55:27 +08:00
92ddceb6a4 executor: reject setting read ts to a future time (#25732) 2021-06-25 18:09:24 +08:00
a7be46a2f8 executor: remove gc safe point check in set executor (#25679) 2021-06-23 16:47:23 +08:00
xhe
3c979129fc executor: mutex snapshot with txn (#25468) 2021-06-17 00:26:37 +08:00
dffba21956 *: move executor/set.go special handling to setter functions (#25008) 2021-06-03 13:22:26 +08:00
d435129d01 executor: make set transaction as of timestamp supports select statement (#24984) 2021-06-01 16:29:38 +08:00
075df515e4 executor, session, variable: Move deprecation, synonyms, scope validation to sysvar struct (#24280) 2021-05-07 23:12:41 +08:00
6084a6a5ff variable: change SetSessionSystemVar to accept string (#24247) 2021-04-26 11:47:55 +08:00
2de4a918ac variable: refactor session/global validation (part 8) (#24100) 2021-04-23 12:07:54 +08:00
38792204f9 executor, session, sessionctx: make last_plan_from_cache and last_plan_from_binding read-only (#21953) 2020-12-24 16:09:30 +08:00
2c66371d8b planner, sessionctx : Add 'last_plan_from_binding' to help know whether sql's plan is matched with the hints in the binding (#18017) 2020-11-20 20:43:23 +08:00
de75e604ff *: differentiate types for user variables (#18973)
Co-authored-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-11-17 17:03:41 +08:00
106b04ddab *: Fix sysvars to native type in @@ context (#20394) 2020-10-19 14:13:43 +08:00
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