Commit Graph

59 Commits

Author SHA1 Message Date
de75e604ff *: differentiate types for user variables (#18973)
Co-authored-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-11-17 17:03:41 +08:00
e102c12479 planner, config: Enable plan cache by default (#20416) 2020-10-29 23:00:26 +08:00
272f964031 executor: support global kill (#17649) 2020-10-27 19:39:20 +08:00
17b7b5e815 *: add executor runtime info for explain for connection statement (#19183) 2020-09-27 20:44:11 +08:00
1c842919eb executor: fix hint not working in prepared statement (#19935) 2020-09-17 13:40:48 +08:00
d81150394f executor: fix cluster index encode wrong key in plan cached point get (#19033)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-10 14:44:14 +08:00
45780a5e7c executor: fix unstable leak test on TestPlanCacheClusterIndex (#19009)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-05 20:31:52 +08:00
ac581ee01e planner: support plan cache for cluster index (#18716) 2020-07-28 14:39:48 +08:00
64f0d4d211 planner: fix wrong prepare plan after isolation read changed (#16293) 2020-06-01 18:02:48 +08:00
8417036804 executor: Add "ignore_plan_cache" hint (#15588) 2020-03-30 11:04:43 +08:00
c9cc3b7e32 executor: support prepare DDL statements with no parameters (#10144) 2019-05-06 08:29:23 +08:00
98b96cc769 executor: speedup unit tests by spliting them into separate suites (#8618) 2018-12-24 21:37:12 +08:00
44f2c2c381 Makefile: make 'make check' faster (#8755)
* remove vet check
* make lint check on $(FILES)
2018-12-21 11:12:18 +08:00
2088cafaca types: restore the field length of a string typed parameter value to the original one (#8656) 2018-12-14 15:39:38 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
cbae4c6815 planner, executor: set memory size to MAXUint64 for prepare plan cache test (#8556) 2018-12-04 10:53:06 +08:00
c677187728 plan: support ? in Order By / Group By / Limit Offset clauses (#8206) 2018-12-03 21:48:54 +08:00
0ac0e154d9 planner, executor: fix PREPARE FROM @var_name (#8437) 2018-11-27 11:00:41 +08:00
84d1299bb2 config, util.kvcache: support the memory guard to prevent OOM for the plan cache (#8339) 2018-11-22 22:05:04 +08:00
61ee0da103 planner: cleanup prepare cache when client send deallocate (#8332) 2018-11-20 12:33:44 +08:00
34c3d4ccc6 planner,executor,parser: support the prepared plan cache for insert/delete/update statements (#8107) 2018-11-05 14:24:48 +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
9ec7515743 *: Add few error checks in tests, clean error messages and fix a misspell (#8101) 2018-10-31 18:50:43 +08:00
3024a5af73 plan: disable plan cache for query containing SubqueryExpr (#8064) 2018-10-26 11:37:23 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
1aa2528d40 planner: not convert to TableDual if empty range is derived from deferred constants (#7808) 2018-10-16 17:05:54 +08:00
e79bd946ed *: change package name from plan to planner (#7760) 2018-09-25 11:16:39 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
6e7d75299d test: refine test (#7414) 2018-08-16 17:05:59 +08:00
53ffa1703e *: fix data race in the file of prepare_test.go (#7232) 2018-08-02 17:07:50 +08:00
b98e089bb2 plan: fix a bug when prepare cache enabled (#7235) 2018-08-02 16:24:02 +08:00
4a203fd525 executor: add placeholder count check in prepare stage (#7162) 2018-07-29 13:35:59 +08:00
dbd7b61404 plan, executor: check b.err after buildSort and buildLimit in builUnion (#7114) 2018-07-21 10:52:44 +08:00
cf0e1c9743 plan: fix a bug in rebuildRange when enabling prepare-plan-cache. (#6637)
* plan: fix a bug in `rebuildRange` when enabling prepare-plan-cache.
2018-05-24 17:24:30 +08:00
ce0c9f373b *: add schema version to the log (#6527) 2018-05-18 14:01:47 +08:00
1931bd3919 plan: fix bug in prepare statement. (#6539) 2018-05-17 17:34:56 +08:00
6248a74d6f plan: refactor errors (#6377) 2018-05-09 13:07:21 +08:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
631141b22c *: remove Next function for RecordSet (#6040) 2018-03-13 21:05:10 +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
274a344ad1 server: fix sub query error in prepare statement (#5761) 2018-02-06 06:49:38 -06:00
93b52805c3 ast, executor: set Fields for SelectStmt in PrepareExec (#5504) 2017-12-27 17:16:49 +08:00
a7b0a1f915 server,tidb: move cancel function from session to clientConn (#5346) 2017-12-09 15:27:58 +08:00
f3d2a62200 executor: add test for rebuilding prepared statement plan. (#5220) 2017-11-28 01:12:07 +08:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
f8c96f1f92 plan, executor: build logical plan to check column name validation when doPrepare (#5116) 2017-11-16 13:49:55 +08:00
15212587e1 *: remove resolver.go (#4988) 2017-11-10 14:42:10 +08:00
e6f86e35d2 plan: build prepared statement plan in Optimize phase. (#4914)
When we build the `Execute` plan, the underlying plan is not built, so we don't know what the plan is before we execute it.
This PR move the plan building for prepared statement to optimizer, so we know what plan we are going to execute before we execute it.
2017-10-28 23:04:07 +08:00
0306bb0070 tidb: support a plan cache for prepared statements (#3956)
* tidb: support a plan cache for prepared statements
2017-10-24 00:55:51 -05:00
a7aaa64c76 parser: parse error compatible (#4238) 2017-10-10 13:00:56 +08:00