8a1e93bc8e
*: add cbo switch. ( #3877 )
2017-08-03 19:28:17 +08:00
4880d920e7
Pass sessionVars for stats() to support session-scoped status vars. [ci skip] ( #3974 )
2017-08-02 15:29:16 +08:00
d0dcb5b0a6
expression, parser: fix issue #3691 , cast compatibility ( #3894 )
2017-08-01 16:47:38 +08:00
0d9ea869c2
*: fix set/get var race ( #3913 )
...
* *: fix set/get var race
2017-07-27 16:08:20 +08:00
91ba0841b0
executor, sessionctx, util: treat decimal truncation as warning during inserting ( #3897 )
2017-07-26 19:10:42 +08:00
e008c6c36a
expression: fix #3762 , signed integer overflow handle in minus unary scalar function ( #3780 )
2017-07-26 11:44:00 +08:00
edb9110a7c
*: CoerceDatum should deal with truncate error internally ( #3799 )
2017-07-20 16:46:06 +08:00
d8aaa222c8
*: make SET TRANSACTION ISOLATION LEVEL READ COMMITTED take effect ( #3619 )
2017-07-17 19:16:23 +08:00
b535fd0b7e
*: remove the useless variable of TiDBSkipDDLWait ( #3527 )
2017-06-22 16:30:18 +08:00
379914a5af
*: fix timestamp column data and index inconsistent involving timezone ( #3497 )
2017-06-20 15:22:50 +08:00
9c3ac28541
sessionctx/variable: store a copy of timezone in StatementContext ( #3495 )
...
There are many place need access to timezone, they come with a StatementContext argument.
So put a copy of timezone into StatementContext to achieve the goal with minimal changes.
2017-06-16 18:33:13 +08:00
439a47c092
sysvar: fix license ( #3460 )
...
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp >
2017-06-12 20:53:55 +08:00
a438237317
*: refactor binlog and reenable test ( #3433 )
2017-06-09 11:39:24 +08:00
eb2b32ee86
executor: validate snapshot TS ( #3416 )
2017-06-08 13:33:12 +08:00
7b6e4475b3
variable: add a varaible to read current timestamp ( #3400 )
2017-06-06 07:27:30 +08:00
62450b9024
Use etcd to speed up DDL process
...
Add the mock owner-manager and schema-syncer and enable using etcd to speed up DDL process by default.
2017-06-04 10:00:41 +08:00
77b87ed170
variable: remove GoSQLDriverTest ( #3361 )
2017-05-31 11:43:38 +08:00
83a40db1fa
sessionctx/variable: add default value of Password Validation Variables ( #3251 )
2017-05-15 12:41:24 +08:00
5f34aa4776
*: Add warnings for load data ( #3224 )
2017-05-11 08:11:52 +08:00
6715099b44
sessionctx: @@version return wrong value ( #3232 ) ( #3238 )
2017-05-11 00:06:09 +08:00
0d6490efc4
*: interpret timestamp datum based on session's time_zone ( #3167 )
...
1. FromPackedUint don't consider time_zone any more, moved to Unflatten
2. use session's time_zone instead of time.Local
3. add a time.Location parameter to some Encode/Decode functions in tablecodec
2017-05-08 11:58:55 +08:00
0d83936ef3
sessionctx: fix comments warning in sessionctx ( #3192 )
2017-05-04 10:23:15 -05:00
20be357e86
expression: fix buildin function found_rows() ( #3134 )
...
fix issue #3131 .
2017-05-02 11:40:10 +08:00
a7f4c3dd5e
sessionctx/varsutil: fix parse time_zone '-6:00' ( #3165 )
...
Fix a parse bug that negative sign is not take into consideration.
2017-05-02 11:25:15 +08:00
a9a33b0209
fix typo ( #3179 )
2017-04-29 00:24:27 +08:00
93f4780f40
plan: add variable countReliable to physicalPlanInfo ( #3011 )
2017-04-24 17:07:31 +08:00
42dec329fe
session: return correct LastInsertID. ( #3071 )
...
When insert into an auto_increment column with a given value, the last insert id write to client should be the value.
2017-04-18 18:53:24 +08:00
3126e5e341
*: online update count in table stats. ( #3053 )
...
When insert and update happens, we will cache the changed info in every session. After a duration(five minutes now) passes, handle will sweep every cache and merge them. Then dump the delta info to TiKV.
2017-04-15 21:20:44 +08:00
e068663cdc
Auto split insert data into multiple batches. ( #2958 )
...
Add a sysvar to enable batch insert data and disable batch insert in transaction.
2017-03-30 14:57:55 +08:00
ad13ca15ca
session: reset affected rows in retry. ( #2949 )
2017-03-29 16:09:47 +08:00
6aa45e441c
Make index serial scan concurrency configurable and fix golint errors. ( #2928 )
2017-03-27 00:57:19 +08:00
ed56d82fa7
sessionctx/variable: refine TiDB specific system variables. ( #2915 )
2017-03-24 12:57:33 +08:00
7aa024c9a0
*: add UTF8 check global variable. ( #2899 )
2017-03-23 08:56:21 +08:00
60bcd987d5
plan/statistics: concurrent build columns ( #2713 )
2017-03-22 22:16:45 +08:00
a408b86269
*: support in subquery unfolding ( #2816 )
2017-03-16 14:26:34 +08:00
cca10bab58
table: check and truncate UTF8 string in CastValue. ( #2819 )
2017-03-15 11:26:19 +08:00
42cd9ac552
*: add flag to control agg push down ( #2809 )
2017-03-10 20:43:08 +08:00
fbf0530210
*: introduce all sql_modes ( #2739 )
2017-02-27 10:53:48 +08:00
07952cb108
*: basic support show warnings. ( #2724 )
2017-02-24 16:29:39 +08:00
6b2ac5ad0d
variable: Enlarge default value for max_allowed_packet ( #2652 )
...
* variable: Enlarge default value for max_allowed_packet
2017-02-15 09:27:49 -06:00
244de11287
*: Make column test stable and fix prepare statement issue ( #2473 )
2017-01-15 22:59:05 +08:00
42f570ab46
*: add 'max_allowed_packet' in common variables. ( #2470 )
...
To save a global query to TiKV when a new connection creates.
2017-01-15 15:52:05 +08:00
7c66138042
executor: optimize delete statement. ( #2421 )
2017-01-10 15:13:00 +08:00
27c0c76cb1
sessionctx: add 'time_zone' session variable ( #2375 )
2017-01-03 20:03:03 +08:00
235a7979b9
sessionctx/varsutil: refactor system variable ( #2359 )
...
Make varsutil package manage all the system variable get and set method.
2017-01-03 11:15:50 +08:00
ebbbf8993b
ddl: speed up create table without the need to change lease. ( #2332 )
...
DDLs that doesn't modify rows like create/drop/truncate table, create/drop database
do not need to wait 2 lease on ddl worker, we can safely remove those wait to
speed up DDL.
But user may create a table, then insert data on that table on another TiDB server,
So we need to wait in session.
User can set a session variable to skip DDL wait if needed, and there is no risk of
data inconsistency.
This solution remove the need for user to set lease to zero when loading data,
It's much more safe and easy to use.
2016-12-28 22:08:19 +08:00
0adabe53a1
*: begin a transaction in PrepareTxnCtx, unify in transaction. ( #2290 )
...
Transaction should has the same life cycle as TxnCtx, so create a
new transaction in PrepareTxnCtx if transaction is nil or invalid.
2016-12-21 16:48:19 +08:00
c24c90b4d3
tidb, variable: refactor retry, add TransactionContext ( #2256 )
2016-12-16 11:07:59 +08:00
d406c77c1f
Revert "tidb, variable: refactor retry, add TransactionContext" ( #2255 )
2016-12-15 10:42:04 +08:00
ff0ceb1785
tidb, variable: refactor retry, add TransactionContext ( #2254 )
2016-12-15 10:35:57 +08:00