Commit Graph

411 Commits

Author SHA1 Message Date
3910a720df *: add assertion in kvproto to check data consistency (#9180) 2019-03-08 16:49:31 +08:00
76e1e58511 build: add check-static in test (#9572) 2019-03-07 15:56:15 +08:00
8b84b94c96 *: fix union scan for partitioned table (#8871) 2019-02-28 13:43:45 +08:00
6f5f7c360f table, executor: handle the column's version when it's greater than ColumnInfoVersion1 (#9488) 2019-02-27 16:57:33 +08:00
f46c558a60 ddl,table/tables: handle partition by range column when len(column)=1 (#9082)
create table ... 'partition by range column', when len(column)=1,
the case can be transformed to 'partiton by range'
2019-02-20 17:02:14 +08:00
94d21c57aa * fix timestamp default value bug in multiple time zones. (#9115) 2019-02-18 15:35:27 +08:00
f73c4e2d58 table: fix error code different from mysql "error 1604 : locate partition failed" (#9294) 2019-02-14 16:53:16 +08:00
469fa877d6 util/hack: define a MutableString type for function hack.String (#9230) 2019-02-12 12:30:40 +08:00
c83a0ceb95 config: add a config item to control whether TiDB check the mb4 character in utf8 (#9175) 2019-01-25 14:39:30 +08:00
36176be874 *: improve syntax error code & message compatibility (#9103) 2019-01-23 10:46:29 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
3c98f69266 *: support select partition for partition table (#8990) 2019-01-14 20:55:52 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
106bc7efc6 executor: return error if autoid overflows shard bits. (#8936) 2019-01-08 12:19:35 +08:00
084aa5a030 config: add initChunkSize config item, make chunk start with 32 (#8480) 2019-01-07 11:14:47 +08:00
1232db5590 planner/core: add DefaultExpr support for expressionRewriter (#8540) 2019-01-02 23:36:36 +08:00
b3698f6670 executor: fix panic and update error data when table has column in write only state (#8792) 2019-01-02 15:49:39 +08:00
e06c87d3c1 add an option for AddRecord and Create (#8884) 2019-01-02 11:30:53 +08:00
0e89c02ffb *: clean up code for insert/update statement (#8867) 2018-12-29 18:46:47 +08:00
bd69b15e79 *: add the error check (#8770) 2018-12-24 22:22:00 +08:00
94df8d1e30 *: ignore unknown hint and return warning instead of return a parser error (#8685) 2018-12-21 13:44:54 +08:00
a7907ede7a *: remove fail field from TxnState (#8712)
Originally, `fail` is added to simplify error handling, avoiding large changes on
the Txn() interface API. But it turns out that `fail` becomes the root of many bugs.
So this commit remove the `fail` and make an API refactory.
2018-12-20 16:36:12 +08:00
1c4d2d9890 table: check non-BMP characters and return error when the charset is utf8 and sql mode is strict mode (#8738) 2018-12-19 17:52:47 +08:00
39c0306d5e session: add error log to catch bug stack in Commit (#8687) 2018-12-14 16:48:04 +08:00
ef0ad26da8 executor,table: remove redundant if condition and fix comment typos (#8627) 2018-12-10 23:48:53 +08:00
93acd10f53 *: add context.Context to NewTxn(), tiny refactor (#8530) 2018-12-06 17:45:16 +08:00
dbf140f835 *: support select, insert for hash partition table. (#8411) 2018-12-05 23:47:29 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
e2e8d67819 table, executor: set a real enum as the default enum value (#8469) 2018-11-27 20:33:12 +08:00
e11859e653 *: support creating a hash partitioned table (#8026) 2018-11-20 16:15:09 +08:00
3742a0d602 *: Txn() function signature refactor and remove ActivePendingTxn() (#8327)
* change Txn() function signature to Txn(active bool)
* ActivePendingTxn() is not used any more because Txn() does the work
* change executor builder getStartTS() uint64 to getStartTS() (uint64, error)
2018-11-16 11:10:39 +08:00
0c3e9c1652 session,executor: run statement without transaction (#8260)
`set @@autocommit = 0`
`select 1` // This statement should not make the session enter a transaction,
because it never need Txn().
Make txn lazy initialize
2018-11-14 20:10:58 +08:00
f7d8ca624a plan: use Column.UniqueID in conditionChecker of ranger (#8236) 2018-11-12 12:45:25 +08:00
09c6bff91c *: Make use of the upperBound of ticlient's kv_scan interface to ensure no overbound scan will happen (#8081) 2018-11-09 18:49:00 +08:00
29f14d4178 *: change default charset and collation from 'utf8 utf8_bin' to 'utf8mb4 utf8mb4_bin' (#7965) 2018-11-09 16:32:21 +08:00
d125958380 tikvclient: Add endKey param to Scanner (#8178) 2018-11-08 18:21:40 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
a7532f12bb table: add more error checking in tests (#8106) 2018-10-30 22:29:21 +08:00
508f5dd626 binlog: use pumps client to write binlog (#8070) 2018-10-27 17:52:01 +08:00
5831de291d *: enable range typed table partition (#8011) 2018-10-26 20:04:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
ec9672cea6 stats: update delta info for partition table (#7947) 2018-10-18 18:42:41 +08:00
e544882d0b ddl:support the definition of null change to not null using alter table (#7771)
* ddl:support the definition of null change to not null using alter table
2018-10-17 17:13:01 +08:00
d7a59ec5a3 executor: remove some useless code and avoid some redundancy check (#7639) 2018-10-12 12:56:02 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
1f2841fbd4 ddl: year type should have an unsigned flag (#7542) 2018-08-31 16:45:38 +08:00
8d1acc2407 Fix bit default value bug (#7249) 2018-08-31 10:43:02 +08:00
1255973764 tables: make duplicate error in update clearer (#7495) 2018-08-28 15:34:39 +08:00
3ff237c211 plan,table: fix select null value for table partition (#7452) 2018-08-23 14:15:48 +08:00
6e7d75299d test: refine test (#7414) 2018-08-16 17:05:59 +08:00