Commit Graph

8026 Commits

Author SHA1 Message Date
5ebdc1c765 server: support MULTI_STATEMENTS and MULTI_RESULTS capability (#1628)
only handle COM_QUERY currently, COM_STMT_PREPARE would be supported later
http://dev.mysql.com/doc/internals/en/capability-flags.html#flag-CLIENT_MULTI_STATEMENTS

implement set option in client/server protocol
http://dev.mysql.com/doc/internals/en/com-set-option.html
2016-08-26 12:27:52 +08:00
e33587ed47 support explain (#1632) 2016-08-26 11:19:23 +08:00
558ba06368 decode with value size (#1641)
Add size parameter for Decode to reduce slice growth
BenchmarkDecodeWithSize-8 300000 6153 ns/op
BenchmarkDecodeWithOutSize-8 200000 11934 ns/op
2016-08-26 10:44:03 +08:00
2b5d2b15d0 *: Fix mysql_test and make autoid rebase method more efficient. (#1637)
* *: fix mysql_test and more efficient autoid rebase method.
2016-08-25 17:49:51 +08:00
2cec538e41 store/tikv: turn-off 'Sum' and 'Avg'. (#1635)
* store/tikv: turn-off 'Sum' and 'Avg'.

Those functions returns Decimal result and new Decimal has not been supported yet.

* executor: the old test expected result is wrong.
2016-08-25 09:21:48 +08:00
4058527690 store/tikv: fix 'BatchGet' send empty key issue, complement tests. (#1636) 2016-08-24 21:29:07 +08:00
fa06043ce7 More efficient autoid rebase methord (#1631)
Prevent update kv everytime when rebase autoid
2016-08-24 11:18:40 +08:00
06b2a64677 executor: turn on switch for tipb.ExprType_MysqlTime. (#1629)
* executor: turn on switch for tipb.ExprType_MysqlTime.

* executor: turn off decimal as the codec has changed.
2016-08-24 10:28:31 +08:00
7c389ac756 fix a cob plan bug when executing join distributely (#1627) 2016-08-23 22:40:57 +08:00
cad03b8a58 store/tikv: add GC worker. (#1577) 2016-08-23 19:29:04 +08:00
79a044312d *: cleanup Makefile (#1625)
remove travis 1.5.3,
makes check run faster.
gofmt writes file.
2016-08-23 15:54:51 +08:00
b8730279d9 parser: fix set upper-case variable (#1624)
* parser: fix set upper-case variable
2016-08-23 15:06:40 +08:00
269f9e8294 *: update proto dependencies for binlog (#1621) 2016-08-23 13:01:06 +08:00
997e4a59f2 *: pass make race (#1617) 2016-08-23 10:46:11 +08:00
e31b281ee7 *: use new MyDecimal implementation. (#1611) 2016-08-22 20:24:39 +08:00
e487035a08 add flag for setting join concurrency. (#1619) 2016-08-22 17:13:38 +08:00
b84b92f5d2 Makefile: Print success message after build successfully (#1616) 2016-08-22 16:52:12 +08:00
ba014642ef store/tikv: make i/o timeout longer. (#1618) 2016-08-22 15:34:12 +08:00
40dd366203 executor: Use multiple goroutines to do join (#1591) 2016-08-22 15:03:11 +08:00
c90d91cba9 *: Support insert ignore (#1579)
Ignore duplicate key errors for insert ignore stmt, Fix #1570
2016-08-22 14:18:56 +08:00
b082eb666e *: update kvproto. (#1615) 2016-08-22 11:13:05 +08:00
b2e8aa93e9 #1586 support MySQL multi-packet packets (#1588) 2016-08-22 10:02:40 +08:00
27ae3a2f98 *: Cleanup UseNewPlanner (#1614) 2016-08-21 21:20:06 +08:00
3752e706c0 *: When sort data by scanning pkcol, xapi TableScan response should keep order (#1612) 2016-08-21 09:46:34 +08:00
e4ac5301ce remove useless code. (#1609) 2016-08-20 16:00:20 +08:00
c3e3366061 *: Use gogo/protobuf for proto between tidb and tikv (#1610) 2016-08-20 10:32:44 +08:00
99c3bba7c7 xapi: Async fetch xapi result (#1599) 2016-08-19 17:16:38 +08:00
6e878144e5 support UPDATE and DELETE in new plan (#1582) 2016-08-19 14:35:39 +08:00
6b77129023 *: Use gogo Marshal/Unmarshal (#1605) 2016-08-18 22:04:59 +08:00
f7d89362a9 ddl: Fix isReorgRunnable owner bug and update log (#1602)
* ddl: fix isReorgRunnable owner bug
2016-08-18 19:31:37 +08:00
c83b69f125 domain: add log (#1604) 2016-08-18 19:11:53 +08:00
469580ffd0 Use gogo proto for tipb (#1603) 2016-08-18 18:03:40 +08:00
083da90693 mysql: refine decimal (#1598)
Prepare for replace old decimal.
2016-08-18 16:10:45 +08:00
f1e358680b *: remove scanner.go from gitignore (#1601) 2016-08-18 15:47:09 +08:00
3eb6f4f513 parser: remove the old lexer, clean up (#1597) 2016-08-18 14:29:45 +08:00
b3a7272db7 *: enable tikv index aggregate (#1594) 2016-08-17 22:32:10 +08:00
96fe96a6c4 *: Add keepOrder parameter for xapi.Select (#1596)
Not all xapi request should return in key order.
2016-08-17 17:27:16 +08:00
0c539124ff travis: Use golang 1.7 (#1593) 2016-08-16 10:57:10 +08:00
6ccbfb2231 mysql: fix time parse (#1592) 2016-08-16 10:56:25 +08:00
4a2f5ba1b7 *: Abstract coprocess result to interface (#1587) 2016-08-16 10:44:16 +08:00
a3eac844ae *: Support set names binary (#1578) 2016-08-15 22:25:23 +08:00
39e4d52bd7 *: support index where and aggregate push down. (#1567) 2016-08-15 20:03:52 +08:00
ac4b8c90b6 parser: fix a lex bug (#1590)
fix bug `numeric` recognised as numericType in new lexer
2016-08-15 16:59:09 +08:00
c246e8f631 Merge pull request #1589 from pingcap/hanfei/false
optimize when condition is false constant.
2016-08-15 16:15:12 +08:00
22c187e9c5 fix a bug 2016-08-15 14:12:38 +08:00
e5085ad808 Merge branch 'master' into hanfei/false 2016-08-15 11:37:42 +08:00
1cd4b1d036 tiny clean 2016-08-15 11:36:53 +08:00
0fb4cd334d support having 2016-08-15 11:35:41 +08:00
d497d3d875 Fix nil point panic when store failed. (#1583) 2016-08-15 11:23:35 +08:00
392acdcd52 Merge branch 'master' into hanfei/false 2016-08-15 11:13:22 +08:00