30cd559fa9
*: refactor sqlexec to support using current session ( #32229 )
...
close pingcap/tidb#32233
2022-02-10 18:09:36 +08:00
2e1cff73f3
*: add ExecRestrictedSQL() func for RestrictedSQLExecutor interface ( #31618 )
...
ref pingcap/tidb#30918
2022-01-24 21:30:11 +08:00
5cd37f0008
session: fix data race in ParseWithParamsInternal ( #31058 )
...
close pingcap/tidb#30918
2022-01-06 21:02:37 +08:00
23c71f1a3b
execute: don't transform charset in internal sql ( #30843 )
...
close pingcap/tidb#30789
2021-12-20 17:15:46 +08:00
55a38a1c76
*: tiny clean up the RecordSet NewChunk() method ( #29232 )
2021-11-02 20:02:51 +08:00
36bc41ad05
*: reduce object allocation by reuse chunk column ( #29064 )
2021-10-28 13:14:48 +08:00
412dd4f763
parser: refactor Parse() interface to make it extensible ( #28975 )
2021-10-21 10:56:45 +08:00
94e30df8e2
parser: fix compiling, add unit tests ( #28700 )
2021-10-11 23:15:25 +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
01a87e3257
*: solve cloud tikv disk full problem ( #26302 )
2021-08-08 13:21:13 +08:00
149e86ac4b
*: introduce snapshot into analyze ( #24575 )
2021-06-25 15:17:24 +08:00
11716e7f4a
*: use full sampling as default analyze ( #25132 )
2021-06-06 00:34:27 +08:00
2b3905b44a
*: avoid create new parser object in prepared exec ( #24883 )
2021-05-26 11:25:34 +08:00
66ad36ee10
planner, executor, statistics: support correlation calc for new sampling method ( #24458 )
2021-05-25 23:57:34 +08:00
d29febf93f
session,util/sqlexec: clean up code for deprecated API ( #23153 )
2021-03-08 17:48:54 +08:00
4172f473da
*: adapt new api for the executor package ( #22644 )
...
Signed-off-by: xhe <xw897002528@gmail.com >
2021-02-04 17:32:15 +08:00
343c412531
planner, executor, statistics: add tests for version 2 and fix bugs ( #22461 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-02-04 15:52:30 +08:00
7ca1629d1a
*: refactor ExecuteInternal to return single resultset ( #22546 )
2021-02-01 14:05:27 +08:00
ea6ccf82e9
*: refactor the RestrictedSQLExecutor interface ( #22579 )
2021-01-29 12:56:44 +08:00
ae0057da71
*: preventing SQL injection ( #22499 )
...
Signed-off-by: xhe <xw897002528@gmail.com >
2021-01-26 18:52:08 +08:00
fc37586491
*: refactor function ExecRestrictedSQLWithContext to fix a DATA RACE ( #21461 )
2020-12-04 14:28:38 +08:00
9620b710a0
executor: fix log desensitization bug in prestmt ( #19392 )
2020-08-24 17:31:51 +08:00
df6f378267
stmtsummary: add a switch to decide whether capture internal q… ( #15461 )
2020-03-20 17:39:11 +08:00
2f926df501
executor: add diagnosis rule to detect cluster critical errors ( #14743 )
2020-02-13 19:34:04 +08:00
073ab9b6a3
*: refactor RestrictedSQLExecutor ( #11904 )
2019-08-28 19:17:19 +08:00
1f57a538a4
distsql: make CopStream available ( #11311 )
...
All tests passed, auto merged by Bot
2019-07-30 17:10:52 +08:00
abbca5375e
*: add trace support for subquery ( #11182 )
...
Test pass, auto merge by Bot
2019-07-24 19:03:47 +08:00
77b6858bf0
*: refine text protocol multiple query response ( #11263 )
2019-07-17 13:01:22 +08:00
d244723a5e
executor: remove unused structure RecordBatch ( #10891 )
2019-06-26 15:26:16 +08:00
6125f49baf
*: fix the read-only check for the prepare/execute statement ( #9723 )
2019-04-01 13:27:49 +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
f085f4fee4
admin: admin check table/index using tidb_snapshot ( #8172 )
...
* admin: admin check table/index support snapshot
2018-11-22 12:21:53 +08:00
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
edaec7bdaf
*: move Statement and RecordSet from ast to sqlexec package ( #7970 )
2018-10-21 13:21:26 +08:00
06021c7cfe
remove types.Row interface ( #7170 )
2018-07-27 13:45:03 +08:00
f287451eed
tidb: move tidb/*.go to session directory ( #6062 )
...
This change makes our top level directory clean.
2018-03-20 09:06:11 -05: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
cf5a22b5fd
*: replace *ast.Row with types.Row ( #5124 )
2017-11-16 18:36:28 +08:00
0977fd07e6
*: begin opentracing from dispatch() and change interface to Execute(ctx, sql) ( #5027 )
2017-11-07 02:52:15 -06:00
a2f2e3f40a
tidb,store/tikv: use special session to execute ExecRestrictedSQL ( #2687 )
2017-02-22 15:08:17 +08:00
f5fac14afb
util/sqlexec: introduce a SQLExecutor interface and use it ( #2618 )
...
This tiny change also fix a bug that privilege background session never commit
2017-02-09 16:44:15 +08:00
42010e61db
fix typo and ineffassign ( #1702 )
...
* fix typo and ineffassign
2016-09-07 01:57:58 -05:00
db4cdcfaec
parser: reduce memory allocation ( #1408 )
2016-07-07 16:42:30 +08:00
d78e4044cc
*: fix misspells ( #1143 )
2016-04-22 11:30:37 +08:00
15356cdd88
tidb: remove RestrictedSQLExecutorKey variable in context.
...
This variable was intended to prevent restricted SQL from being committed.
But it is executed at statement level, will never be committed, so this is not needed.
Also, when begin a new transaction in executing restricted SQL,
If 'autocommit' is 'on'. This variable makes the new transaction into a unwanted `InTrans` state,
so following statements will not be autocommited.
2016-03-17 10:31:56 +08:00
b5fbabc05e
*: Remove plan.go/stmt.go/rset.go
...
Move interface into ast and remove interfaces.
2016-03-01 13:53:48 +08:00
5f2167a5d9
*: Get/Set global sys var from/to kv store.
2015-10-25 22:38:28 +08:00
83fa8f8d4f
*: Address comment
2015-10-16 12:26:10 +08:00