3b83192fa5
session_test: move out test of affect_rows ( #4492 )
2017-09-11 18:25:37 +08:00
d11591fc16
session: move err_rollback test. ( #4412 )
2017-09-11 16:37:52 +08:00
fc209cb1df
*: rewrite hex and bit literals ( #4415 )
2017-09-07 16:28:24 +08:00
ea29a1c30d
expression: Support more types when getting default flen and decimal ( #4236 )
2017-08-28 02:26:07 -05:00
b23901b187
*: rewrite function IN to DNF ( #4174 )
2017-08-15 14:28:43 +08:00
a88ebb1cf6
*: use structure to store user identity ( #4078 )
...
*: use structure to store user identity
2017-08-14 03:37:36 -05:00
ab53786d33
*: Define the schema change at the table level ( #3999 )
2017-08-04 17:53:38 +08:00
88616f0433
parser, session: fix wrong comment in selection field ( #3767 )
2017-07-17 13:55:26 +08:00
7294232a9e
*: rewrite compare functions using new expression evaluation architecture ( #3714 )
2017-07-13 19:46:46 +08:00
78319c7530
*: reset statement context for prepared statements ( #3413 )
2017-06-07 10:06:32 +08:00
757953632b
store/tikv: write read-only select for update locks ( #3402 )
2017-06-06 01:29:33 -05:00
31579bb3f0
Fix asyncGetTSWorker goroutine leak ( #3291 )
2017-05-22 16:53:31 +08:00
b3c43e52ca
*: retry commit for prepared statement when schema change ( #3297 )
2017-05-21 10:42:10 +08:00
302aa70f76
domain: check schema change when lease=0 ( #3273 )
2017-05-17 20:08:31 +08:00
97c8e3618a
tidb: fix retry when commit get infoschema change error ( #3270 )
2017-05-17 14:46:24 +08:00
10fc9fcd44
tidb: eliminate runtime.morestack from getTimestamp call stack ( #3054 )
2017-05-04 20:06:37 +08:00
a9a33b0209
fix typo ( #3179 )
2017-04-29 00:24:27 +08:00
59154905aa
*: rename table-driven tests name. ( #3081 )
2017-04-19 10:02:57 +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
ad13ca15ca
session: reset affected rows in retry. ( #2949 )
2017-03-29 16:09:47 +08:00
13fa294a73
*: provide a command line flag --skip-grant-table ( #2897 )
2017-03-21 18:16:00 +08:00
8a212e4bf8
*: fix prepared statement panic ( #2767 )
...
* *: fix prepared statement panic
`ast.SelectStmt.Fields` is changed during plan building,
newly created `ast.ColumnNameExpr` has nil Refer.
2017-03-01 18:51:59 +08:00
44a205fe0a
session: reset StmtCtx in retry ( #2761 )
...
session: reset StmtCtx in retry, fix issues 2759
2017-03-01 10:27:32 +08:00
5464aa40b6
session: set txn to nil after retry. ( #2758 )
...
Fixes the bug that retry leaves uncommitted transaction which will be incorrectly committed by the next transaction.
* *: refine comment
2017-02-28 23:47:41 +08:00
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