Commit Graph

66 Commits

Author SHA1 Message Date
b1d134d7d9 txn: Add txn state's view (#22908) 2021-05-12 19:25:40 +08:00
50234d1c50 executor: skip TestPrepareStmtAfterIsolationReadChange when race enable (#24200) 2021-04-23 11:43:54 +08:00
aee5819a20 *: change @@tidb_enable_clustered_index to ON/OFF/INT_ONLY (#23529) 2021-03-26 15:59:24 +08:00
1ac53c546d planner: fix wrong PointGet / TableDual plan reused in plan cache (#23238) 2021-03-17 16:52:55 +08:00
8a490e96b5 parser: quote identifier with backquote when getting SQL digest (#22893) 2021-02-26 14:54:54 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
61e068a4d6 executor: throw error when prepared statement is execute, deallocate or prepare (#21962) 2020-12-23 17:55:59 +08:00
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