Commit Graph

49 Commits

Author SHA1 Message Date
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
6f9457e373 executor: use tearDownTest instead of defer (#4499) 2017-09-12 01:02:41 -05:00
78319c7530 *: reset statement context for prepared statements (#3413) 2017-06-07 10:06:32 +08:00
b4f20e6f0b util/testkit: refine testkit (#3177) 2017-04-29 23:20:49 +08:00
0864f17749 plan: handle int64 type when evaluate limit and count. (#2648)
Fix parameter mark limit for prepared statement.
2017-02-15 17:43:23 +08:00
1aa005190f executor: set text for execute prepared statement. (#2620) 2017-02-09 19:22:43 +08:00
d40e24ce46 *: in prepared statement limit/offset may be placeholder (#2364) 2017-01-03 14:52:14 +08:00
39a2c09542 executor_test: clean enviroment for each test. (#2025) 2016-11-18 16:45:13 +08:00
cbf024e8f7 *: clean code. (#1987) 2016-11-10 15:38:22 +08:00
685fb1b0c2 executor: split big test file into smaller files. (#1757)
One big test file makes it hard to locate a specific test case.
2016-09-22 21:55:24 +08:00