a2f2e3f40a
tidb,store/tikv: use special session to execute ExecRestrictedSQL ( #2687 )
2017-02-22 15:08:17 +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
4d2cfb78f2
tidb: return fields for prepared statements. ( #2642 )
...
Prepared statement should return result fields.
2017-02-15 11:41:22 +08:00
8bafc3d515
tidb: accelerate unit test ( #2590 )
...
Avoid BootstrapSession everytime, just do it once in testSessionSuite.SetUpSuite
2017-02-06 15:11:38 +08:00
9d536e34a7
*: run a bootstrap session before store is ready (fix race) ( #2491 )
2017-01-22 11:39:25 +08:00
999517c4f1
Revert "*: run a bootstrap session before store is ready" ( #2490 )
2017-01-17 15:14:24 +08:00
e1ecc1059e
*: run a bootstrap session before store is ready ( #2481 )
2017-01-17 14:46:35 +08:00
849071221c
Wrong behavior when executing alter table t add index c (c(3)); ( #2432 ) ( #2441 )
2017-01-11 18:25:57 +08:00
0f15c2ec5d
kv: limit transaction size, len, and entry length, reduce retry times ( #2426 )
2017-01-10 12:26:18 +08:00
d4f1a0a28d
ddl: Add the index key prefix limit ( #2272 ) ( #2380 )
2017-01-10 11:32:20 +08:00
c8cc389fdc
ddl: bug in columnDefToCol, Length shouldn't be set for unspecified fields. ( #2381 ) ( #2382 )
2017-01-05 12:04:21 +08:00
f35ab30127
*: change the implementation of domain schema lease ( #2327 )
...
lease is based on pd timestamp oracle instead of TiDB local time
return retryable error when schema check find schema changed
move schema lease check to 2PC, use commitTS
2017-01-03 19:45:08 +08:00
64484a4257
*: refactor context.Context ( #2298 )
...
Make transaction life cycle under control, prepare for correctly handle schema out of date error.
The old `GetTxn(forceNew boll)` is replaced by `Txn` and `NewTxn`,
`CommitTxn` and `RollbackTxn` is removed.
2016-12-23 13:02:41 +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
1f6737ef67
*: remove SetLease method in domain ( #2149 )
2016-12-12 18:26:38 +08:00
292e58c2aa
*: make union execution parallel and fix a union plan bug. ( #2195 )
2016-12-08 22:45:49 +08:00
51a10a6725
*: Fix issue #2175 ( #2188 )
...
*: fix issue #2175
2016-12-07 14:58:22 +08:00
6ae4cfd001
*: Set the error of schema expired to retryable error ( #2110 )
...
* domain: rename an error name
2016-11-29 18:16:16 +08:00
b314115059
*: Fix a typo in information_schema.columns table column name ( #2126 )
2016-11-29 15:23:19 +08:00
5c9f073072
*: Do retry when schema is expired ( #2094 )
...
*: Do retry when schema is expired
2016-11-28 12:17:40 +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
9cca7b0b02
types: move Bit, Enum, Set, Hex to types package ( #2085 )
...
Consistent with Time and MyDecimal.
2016-11-24 12:28:55 +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
2432209720
domain: Fix data race ( #2062 )
...
* *: fix data race
2016-11-22 20:59:05 +08:00
1181acc640
*: Reduce loading schema times ( #1984 )
...
* *: only if it's success to do DDL or in reloadLoop to load schema
2016-11-22 18:34:06 +08:00
6748d3e83e
*: add comment for show table status. ( #2032 )
2016-11-18 19:10:25 +08:00
9dbf0c312b
infoschema: do not reuse auto ID allocator for truncate table.
...
For truncate table, old table ID is different than new table ID, the same allocator will alloc ID
for different table ID, can not ensure uniqueness.
2016-11-15 10:39:32 +08:00
f40b9f284c
plan: consider multiple in expressions when calculating range. ( #1961 )
2016-11-08 15:44:29 +08:00
6dd4571a9a
plan: handle type convertion when building index range. ( #1964 )
2016-11-07 20:32:09 +08:00
a4d64c2b88
tidb: set one statement query string instead of multi-statement query string ( #1950 )
...
When user executing multi-statement query, we should set only one statement query.
2016-11-04 19:57:04 +08:00
1f1a60c02a
*: improve log ( #1944 )
...
Add logging for set system variable.
Add connection ID in log.
Adjust some log level.
Improve readability.
2016-11-04 17:11:10 +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
1d06bc63ea
fix a bug in projection elimination ( #1801 )
2016-10-09 17:33:06 +08:00
5caa0f5e29
decide push down conditions during plan building phase. ( #1731 )
2016-09-18 10:35:52 +08:00
e4ac5301ce
remove useless code. ( #1609 )
2016-08-20 16:00:20 +08:00
39e4d52bd7
*: support index where and aggregate push down. ( #1567 )
2016-08-15 20:03:52 +08:00
d497d3d875
Fix nil point panic when store failed. ( #1583 )
2016-08-15 11:23:35 +08:00
b060ff9241
fix a few bugs. ( #1553 )
2016-08-04 17:02:46 +08:00
b06966048e
correct column names ( #1548 )
2016-08-03 17:27:34 +08:00
b7001066ac
solve having column correctly. ( #1546 )
2016-08-03 16:29:04 +08:00
733bd400bb
plan: Support “in” and “like” in new check ( #1533 )
...
* plan: support in and like in new check
* *: open MultiColumnIndex test
2016-08-03 10:02:09 +08:00
60d0c97721
Hanfei/newplan ( #1513 )
2016-07-28 14:11:57 +08:00
4eec6caf58
*: Fix issue#1435 ( #1467 )
...
* *: fix issue 1435
2016-07-23 19:08:15 +08:00
3e7269eec1
*: remove the useless argument in exec ( #1475 )
2016-07-20 11:04:41 +08:00
ed8bda4035
support select lock. ( #1466 )
2016-07-18 15:50:44 +08:00
e402fc81ab
*: add constraint for the length of the index prefix ( #1462 )
2016-07-18 13:03:39 +08:00