Commit Graph

47 Commits

Author SHA1 Message Date
5230f5eabd variable: define StatementContext. (#2121)
StatementContext is used to hold statement execution mode and state.
As every computation need this, there are many API changes.
2016-11-29 14:25:38 +08:00
73f2ffad90 varsutil: remove dependency on 'types' for 'variable' package (#2095)
* varsutil: remove dependency on 'types' for 'variable' package

'variable' package will be used in 'types', remove dependency on 'types' by
moving functions to a new 'varsutil' package.

Also extract 'SetExec' from 'SimpleExec'
2016-11-25 13:44:49 +08:00
b19cc75a94 mysql, types: move MyDecimal and Time from 'mysql' to 'types' package. (#2082)
So we don't need to handle sql mode in 'mysql' package, avoid potential dependency cycle.
2016-11-24 10:50:31 +08:00
0af8520a78 sessionctx/variable: remove dependency on context package. (#2064)
Makes using session variable easier and faster.
Prepare for use session variable to handle data truncated error.
2016-11-23 14:39:48 +08:00
4d988fb62b *: Fix set tidb session variable bug (#2036) 2016-11-19 11:42:03 +08:00
470d6dcd1c *: Fix TiDBSkipConstraintCheck session scope variable bug (#2035) 2016-11-19 11:08:58 +08:00
5f457a2c62 *: Add a variable to skip constraint check in session. (#2031)
When import data from mysqldump/mydumper. We could skip constraint check.
2016-11-18 22:54:28 +08:00
5d1a069ada executor: set scanConcurrency varialbe for distsql Executor on building. (#1943)
Prevent worker goroutines from reading session variable map, Fixes race.
2016-11-04 09:46:00 +08:00
bfc1ca679a tidb: load and apply common global variables for the session (#1942)
Fixes a bug some global variables like 'sql_mode' not applied to session.
2016-11-03 22:01:15 +08:00
efc96a73a6 *: Support set dist sql concurrency by set system variable (#1795) 2016-10-17 15:12:17 +08:00
93e6796d2b *: support history read with old schema (#1790)
When user set 'tidb_snapshot' variable, load and use the schema at the snapshot time.
2016-10-08 19:54:48 +08:00
1dd9e89eb0 *: write binlog to unix socket. (#1660)
support write binlog to a unix socket through grpc.
2016-09-21 13:09:03 +08:00
ade11fe9f4 *: support history read. (#1734)
* *: support history read.

This commit only handles the case when scheme does not change.
Use history schema will be supported in the following PR.
2016-09-19 15:37:30 +08:00
0450ba0b47 *: unify "See url" format (#1391)
* *: unify "See url" format
2016-07-05 11:21:10 +08:00
cad94acb54 Store row data in single kv pair (#1347) 2016-06-28 11:15:09 +08:00
e3597b6548 Add Datum.IsNull() fucntion (#1298)
Add IsNull function for Datum to simplify null check.
2016-06-07 23:35:25 +08:00
2631d50741 *: Add retry attempts into txn (#1284)
* *: Add retry attempts into txn
2016-06-03 17:37:41 +08:00
ed33f4c8a2 *: allow system variable 'character_set_results' to be set to NULL. (#1275) 2016-05-31 17:54:46 +08:00
f09574d826 *: support sql mode (#1263) 2016-05-30 13:16:41 +08:00
d78e4044cc *: fix misspells (#1143) 2016-04-22 11:30:37 +08:00
xia
6aacddd44e *: unify error format 2016-03-31 16:20:47 +08:00
xia
6604c81f5a *: fix issue#996 and handle prepared retry 2016-03-24 12:08:53 +08:00
2d7a105745 *: address comment 2015-12-23 14:52:45 +08:00
7e41caefe1 session/variable: fix method comment. 2015-12-22 13:46:09 +08:00
bca6bbdafe executor: address comment. 2015-12-22 13:37:19 +08:00
cce746ee8a Merge branch 'master' into coocood/prepare
Conflicts:
	session.go
2015-12-22 13:24:57 +08:00
cfe157f93f *: Unify session ID and connection ID
This is for Github issue #722.

1. CONNECTION_ID now can get the real id generate at server side (rather than a session id).

2. Keep session id generation untouched to ensure minimal interface change.
2015-12-21 23:03:39 +08:00
dcdb32dbde plan. executor: support prepared statement. 2015-12-18 16:56:08 +08:00
xia
65dc9e9d12 *: remove session variable statuses 2015-11-19 20:00:46 +08:00
xia
4d8ae00846 sessionctx: add StatusVars 2015-11-09 19:49:31 +08:00
407d99967e *: Refactor some code to support global system variable. 2015-10-26 14:35:06 +08:00
5f2167a5d9 *: Get/Set global sys var from/to kv store. 2015-10-25 22:38:28 +08:00
29369dba8f *: Rename mysqldef to mysql 2015-10-19 16:26:43 +08:00
1b2bbfea8b sessionctx: tiny clean up. 2015-10-08 23:52:38 +08:00
f9e400d4b3 builtin: Support User() and Current_User() 2015-09-23 11:02:45 +08:00
0d46df9532 expression: rename package and remove import 2015-09-21 18:02:27 +08:00
xia
1bd9a1e740 *: rename SetStatus to SetStatusFlag 2015-09-17 16:47:53 +08:00
xia
85e7c6e1dc tidb: rename SetStatusInTrans to SetStatus 2015-09-17 16:08:46 +08:00
xia
587e5d6250 *: update IsAutocommit and SetStatus 2015-09-17 16:04:08 +08:00
a5aeb9985c sessionctx: add IsAutocommit 2015-09-17 09:42:17 +08:00
xia
127b0fba0e *: clean up and update test 2015-09-16 17:40:47 +08:00
xia
73df308a03 *: remove DisableAutocommit and rename IsAutocommit to ShouldAutocommit 2015-09-16 15:31:29 +08:00
xia
88243211c4 sessionctx: update format 2015-09-15 16:09:10 +08:00
xia
a11fa52306 sessionctx: update comments 2015-09-15 15:19:25 +08:00
2287542d64 sessionctx: add ServerStatusInTrans and comments 2015-09-15 15:19:15 +08:00
3531df91b9 stmt: set ServerStatusInTrans 2015-09-15 15:18:56 +08:00
0d6f270068 Add files 2015-09-06 12:08:47 +08:00