Commit Graph

8026 Commits

Author SHA1 Message Date
d40e24ce46 *: in prepared statement limit/offset may be placeholder (#2364) 2017-01-03 14:52:14 +08:00
3f9a101ce6 parser: Index option could be a list (#2366) 2017-01-03 11:49:48 +08:00
042280e1bf expression: add baseFunctionClass (#2361) 2017-01-03 11:21:14 +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
b80488f875 Remove unmaintained storage engine (#2372)
* Remove unmaintained storage engine
2017-01-03 10:22:34 +08:00
27f5f287f7 expression: move types.helper to expression pkg. (#2371) 2017-01-02 10:50:41 +08:00
b2e9ad7e55 ast: clean useless code. (#2367) 2017-01-01 18:43:22 +08:00
0b4a8f652d executor: move some exec out of executor.go (#2363) 2016-12-31 23:21:46 +08:00
45e841b663 expression: move some funcs out of builtin_other. (#2362) 2016-12-31 23:15:57 +08:00
f0fbe16e18 add support for the LEAST function (#2360) 2016-12-31 22:37:43 +08:00
b5c9650b5a server: rename IStatement to PreparedStatement (#2358) 2016-12-30 20:59:58 +08:00
0668c5fa03 server: rename IContext to QueryCtx (#2356)
* server: rename IContext to QueryCtx
2016-12-30 19:57:56 +08:00
31d58b69ed executor: consider uint = int in join condition. (#2355) 2016-12-30 19:00:49 +08:00
42dd3c8759 expression: fix shadow warning (#2354) 2016-12-30 11:56:14 +08:00
b180334231 server: fix issue 2346 (#2351)
ComStmtExecute packet just send params type information the first time,
so PrepareStmt should save it for further use.
2016-12-29 23:28:17 +08:00
20cb3f2c93 store/tikv/mock-tikv: fix data race (#2352) 2016-12-29 22:17:39 +08:00
c99cdaaa30 *: parser support crc32 conv bit_xor (#2347)
*: parser support crc32 conv bit_xor
2016-12-29 20:49:12 +08:00
c00a1c3af0 Update beta to rc version (#2350) 2016-12-29 20:16:53 +08:00
fbed4ca5ee store/tikv: split table for mock tikv (#2331) 2016-12-29 20:16:13 +08:00
7d9944f01c *: add builtin func interface. (#2344) 2016-12-29 19:41:46 +08:00
a28ab3eb73 *: add GetArgs interface (#2343) 2016-12-29 19:10:01 +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
5a3099477a ticlient: clear store address info when receiving StoreNotMatch (#2339) 2016-12-28 17:51:46 +08:00
b5e9cc5a7b util/types: fix get valid float (#2337)
The valid float prefix of "11e1.3" should be "11e1".
2016-12-28 16:40:35 +08:00
5e60397887 util/types: log timestamp error (#2336) 2016-12-28 16:01:10 +08:00
7c87b92468 *: Use standard error code/message for incorrect function argument count error (#2335)
* *: Use standard error code/message for incorrect fuction argument count
error
2016-12-28 14:57:39 +08:00
c29ebe0715 domain: schema lease manage abstraction (#2137) 2016-12-27 20:23:42 +08:00
5f96f67cbc *: change schema from []*Column to struct (#2321) 2016-12-27 14:02:19 +08:00
02ad847e9c store/tikv: return error when transaction is too large. (#2325) 2016-12-26 23:40:52 +08:00
305bb6c643 util/types: StrToDate support more format control (#2310) 2016-12-26 22:56:13 +08:00
2248b6226b ddl: Add a ddl_op file (#2324)
* ddl: add a ddl_api file
2016-12-26 14:31:01 +08:00
453a95ce8c *: merge packages of evaluator and expression. (#2322) 2016-12-26 12:35:29 +08:00
12f3654672 add func char_length (#2323)
* add func char_length
2016-12-26 11:22:17 +08:00
cd9bd133db ddl: fix issue 2293 (#2316) 2016-12-26 10:52:16 +08:00
6f95d18e01 *: remove a useless argument (#2319) 2016-12-25 16:18:53 +08:00
751a81b77e *: add physical mem table plan (#2296) 2016-12-25 16:13:18 +08:00
d358fc691d add two builtin functions (#2312)
Add two functions, bit_length and char.
2016-12-25 16:07:46 +08:00
fb3c6ad609 evaluator: makes values function dynamic. (#2320)
VALUES function depends on current row, should not be folded.
Avoid unnecessary warning during constant folding.
2016-12-25 15:01:01 +08:00
7414bede41 ddl: Speed up adding index phase (#2309)
* ddl: speed up adding index phase
2016-12-23 18:18:30 +08:00
e84c442199 evaluator: remove Eval function. (#2313) 2016-12-23 17:07:12 +08:00
73a7118d9b store/tikv: adjust log levels. (#2314) 2016-12-23 14:12:44 +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
2acbf242a4 parser: support show keys from table from database syntax. (#2308)
Fixes issue https://github.com/pingcap/tidb/issues/2303
2016-12-23 12:54:48 +08:00
b7a768514a plan: move some initialization out of convert2PhysicalPlan process (#2263) 2016-12-22 21:40:46 -06:00
26e5c0c867 *: move evaluator's helper to expression package. (#2291) 2016-12-23 11:34:52 +08:00
d6c45e35bb kv: update logs (#2307) 2016-12-22 20:41:07 +08:00
bd02505875 ast: correct comments (#2305) (#2306) 2016-12-22 19:26:42 +08:00
da69877e7a evaluator: change test (#2304) 2016-12-22 19:11:02 +08:00
dec5ae56d9 evaluator: change string test. (#2302) 2016-12-22 17:45:19 +08:00
bb66fbe6b0 evaluator: change the test to give up Eval function. (#2301) 2016-12-22 16:41:47 +08:00