Commit Graph

3850 Commits

Author SHA1 Message Date
6b444f8e55 server: check an array out of range for malform packet (#2048) 2016-11-21 23:10:28 +08:00
af5b0e71fc infoschema: implement infoschema table. (#2034)
Creates a information schema specific table that implements table.Table interface.
The rows in this table is generated by `[]*model.DBInfo` on request.

Further reduce memory allocation.
2016-11-21 19:47:41 +08:00
91050ff1f8 parser: parse decimal literal instead of float literal (#2044)
Improves MySQL compatibility.
2016-11-21 19:29:25 +08:00
84756589da mock-tikv: return correct Locked error. (#2043) 2016-11-21 17:19:35 +08:00
b92330c068 store/tikv: increase lock ttl for large transactions. (#2004) 2016-11-21 14:35:15 +08:00
d7318e72bd plan: distinguish the physical plan test and logical plan test. (#2042) 2016-11-21 14:20:52 +08:00
8e1e13d797 Update bootstrap_test.go (#2041) 2016-11-21 09:33:36 +08:00
f3263f92f3 tikv: using 32k as default batch size (#2021) 2016-11-21 00:12:09 +08:00
81a3ba602a parser: support select t.ReservedKeyword from t; (#2039)
For example "select t.desc from t;"
2016-11-20 22:44:13 +08:00
8fa03ee0ab plan: process wildstar correctly. (#2038) 2016-11-20 21:02:29 +08:00
6dc49a736c executor: remove filter exec. (#2037) 2016-11-20 13:48:46 +08:00
2f47f24b22 parser: database.ReservedKeyword as identifier & clean up (#2027)
1. fix a bug test.desc can't be used as identifier, which is valid in mysql
2. introduce ReservedKeyword in parser.y and clean up
3. fix mysql client "use `select`;" can't work
4. refine lexer's special comment mode pos line/offset
2016-11-19 14:22:10 +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
6748d3e83e *: add comment for show table status. (#2032) 2016-11-18 19:10:25 +08:00
39a2c09542 executor_test: clean enviroment for each test. (#2025) 2016-11-18 16:45:13 +08:00
abffed325e infoschema: change data structure for lookup table by ID. (#2006) 2016-11-18 15:36:11 +08:00
85f5d30ab6 store/tikv: refactor transaction committer. (#2023)
Replaced several arguments with a single action type, improves readability.
2016-11-18 14:55:04 +08:00
eafda5ee61 plan: remove old validator logic (#2013) 2016-11-18 13:24:20 +08:00
a53c700c03 *: clean up log (#2030)
We should not print too long query into log.
2016-11-18 11:40:02 +08:00
bb93112bda fix bugs (#2020) 2016-11-17 21:46:19 +08:00
14c9bbc674 ddl: pass race (#2024) 2016-11-17 19:22:18 +08:00
2f1cd5be00 plan: make explain result more explicit (#2022) 2016-11-17 18:05:18 +08:00
0b35f481c0 store/tikv: add a context in BackOffer to support cancel operation (#1988)
* store/tikv: add a context in BackOffer to support cancel operation
2016-11-17 14:05:21 +08:00
fdb74960a4 add a new expression type: Correlated Column. (#1973) 2016-11-17 12:42:12 +08:00
afc501273d domain: concurrently fetch schema tables. (#1996)
To speed up loading information schema with a lot of tables.
2016-11-17 11:00:42 +08:00
94b5d1001f parser: handle MySQL-specific-code comment syntax in parser (#2018)
* parser: handle MySQL-specific-code comment syntax in parser

fix issue 2017
2016-11-17 10:47:21 +08:00
01dde4433a ddl: tiny clean up (#2011) 2016-11-15 17:05:17 +08:00
bb70acda13 ddl: rename batchSize to batchCnt (#2005) 2016-11-15 16:05:25 +08:00
7ddb150920 executor: add more statements for metric of statement counter (#1967) 2016-11-15 14:34:15 +08:00
a636a7d446 clean useless code. (#1998) 2016-11-15 14:13:36 +08:00
75b21addd0 Merge branch 'master' into hanfei/clean 2016-11-15 14:03:35 +08:00
d0cb5d9187 *: truncate data (#2002) 2016-11-15 14:02:20 +08:00
b7f0ce5a7b Merge branch 'master' into hanfei/clean 2016-11-15 13:36:44 +08:00
f4ae98682e ddl: minor clean up (#2003) 2016-11-15 13:36:13 +08:00
5d24da38b6 Merge branch 'master' into hanfei/clean 2016-11-15 13:21:22 +08:00
de1b558039 Merge branch 'master' into ngaut/minor-clean-up 2016-11-15 13:14:32 +08:00
5a1d8d4b2c ddl: minor clean up 2016-11-15 13:06:27 +08:00
165b8b1e3e Makefile: make race test parallel on package level (#1999) 2016-11-15 12:59:30 +08:00
d283d05b1c Merge branch 'master' into tiancaiamao/speed-up-ci 2016-11-15 12:51:19 +08:00
2a07230c46 Merge branch 'master' into hanfei/clean 2016-11-15 12:47:25 +08:00
6c9698e7fa infoschema: do not reuse auto ID allocator for truncate table. (#2000)
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 11:19:27 +08:00
421ceeb8fa *: make golint happy. 2016-11-15 11:12:24 +08:00
cbdb3fd507 infoschema: fix ci 2016-11-15 10:58:30 +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
217aa8907d Makefile: make race test parallel on package level 2016-11-14 20:05:13 +08:00
70846fb43c clean useless code. 2016-11-14 18:36:57 +08:00
5b21b001da executor: when we fetch 100000 records from index scan, log it. (#1990) 2016-11-14 13:16:22 +08:00
3b8bf2135c parser: tiny clean up (#1992)
rename scanner_test.go to lexer_test.go
make the code more robust when unicode.ReplacementChar appears
2016-11-13 15:20:01 +08:00