Commit Graph

214 Commits

Author SHA1 Message Date
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
d0cb5d9187 *: truncate data (#2002) 2016-11-15 14:02:20 +08:00
5d3bb33afd util/types: fix decimal conversion. (#1979)
When datum converts to decimal, we should check the Flen and Decimal of
the given field type, return max value for overflow and round the value
for truncation.
2016-11-09 16:53:30 +08:00
1c6c145f94 *: Set custom verbose flag to true (#1956)
* *: set custom verbose flag to true

* *: update .gitignore
2016-11-05 18:00:13 +08:00
4a6b093dff table/tables: fix panic (#1952)
fix panic
2016-11-05 10:04:42 +08:00
3738794502 util/types, table: truncate string by rune count, remove UTF8 validation (#1877)
Column length defined in create table should limits the rune count rather than bytes.
And MySQL doesn't return error for inserting invalid UTF8 string, we should not do it.
2016-10-26 20:34:35 +08:00
d04dea2c57 *: use schema diff to reduce memory allocation (#1858)
When schema version has changed, we don't need to reload all schemas, only
modified table need to be reloaded, this will reduce the pressure on Go garbage collector.

Also removed used map in *inforSchema.
2016-10-24 15:17:44 +08:00
9f615fc5dc table: change Column type to alias of ColumnInfo (#1855)
So we can use a ColumnInfo directly, without coping, reduce memory usage.
2016-10-20 21:48:08 +08:00
3d670c47b0 executor,table: remove LockKeys and Truncate method in Table interface. (#1833)
Those two method should not be defiend in Table, LockKeys should be implemented
In SelectLock executor, Truncate has changed to use DDL operation.
2016-10-18 00:35:45 +08:00
ff1c7b1f0a table: check valid UTF8 value for UTF8 column (#1818)
We need to check if the input data is valid UTF8 string if the column charset is UTF8,
Otherwise, it may cause more serious error in the future, and hard to fix.
2016-10-14 16:00:02 +08:00
f86a32d261 ddl: write DDL binlog. (#1752)
Pass query string in context, also disallows prepare DDL, so we can be sure that
DDL query do not contains parameter marker.

change binlog row encoding format.

including columnID in binlog row, so it can be adapted to different schema version.

prepend old row for update binlog when don't have PK.
2016-10-08 11:48:58 +08:00
1dd9e89eb0 *: write binlog to unix socket. (#1660)
support write binlog to a unix socket through grpc.
2016-09-21 13:09:03 +08:00
ed4649e85d *: Support load data local (#1634) 2016-08-30 09:38:37 +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
fa06043ce7 More efficient autoid rebase methord (#1631)
Prevent update kv everytime when rebase autoid
2016-08-24 11:18:40 +08:00
e31b281ee7 *: use new MyDecimal implementation. (#1611) 2016-08-22 20:24:39 +08:00
f3645267bd Remove useless index seek (#1556) 2016-08-08 10:27:39 +08:00
cbddbcdcd0 *: fix add record panic (#1482) 2016-07-22 08:38:18 +08:00
fda013b080 ddl: set default value to zero value when add a not null column. (#1443) 2016-07-14 10:57:34 +08:00
8edbf557a2 *: remove MemBuffer cache and Release method. (#1411) 2016-07-08 11:57:02 +08:00
e687f908d3 *: tiny clean up (#1404) 2016-07-07 09:50:45 +08:00
5dc459c657 terror: Improve terror performance. (#1393) 2016-07-05 15:04:33 +08:00
5408833b9a ddl: improve ddl test (#1387) 2016-07-05 11:21:50 +08:00
0450ba0b47 *: unify "See url" format (#1391)
* *: unify "See url" format
2016-07-05 11:21:10 +08:00
d04b0b997c *: support index length (#1350)
For string columns, indexes can be created that use only the
leading part of column values, using col_name(length) syntax
to specify an index prefix length
2016-07-02 13:26:40 +08:00
d1afacc451 table: export WritableCols (#1369) 2016-07-01 12:55:04 +08:00
a4fe3f457c tables: Fix shadowed err (#1362) 2016-06-30 11:27:53 +08:00
9bf6e03812 table/table: set default value when write only column is null (#1357)
The test cover this issue need some work, will be added in next PR.
2016-06-29 14:29:20 +08:00
83a6c94302 table/tables: fix IterRecords. (#1356) 2016-06-29 11:43:07 +08:00
a0e3c2ee3b ddl: fix column test (#1354) 2016-06-28 12:37:12 +08:00
cad94acb54 Store row data in single kv pair (#1347) 2016-06-28 11:15:09 +08:00
633b5b9a9a *: Clean up tablecodec and tables (#1338) 2016-06-22 17:11:54 +08:00
ee1bdd699a *: Cleanup table codec (#1337)
Prepare for row-based storage model
2016-06-22 15:24:56 +08:00
b95c6c96a6 tables: Remove duplicate codes (#1336)
Use tablecodec.Unflatten
2016-06-22 14:23:26 +08:00
a9aad12ba8 *: move tablecodec package out of xapi. (#1335) 2016-06-22 13:32:26 +08:00
dd6bfacdb8 *: refactor index, use TableInfo and IndexInfo to create an Index (#1333) 2016-06-21 15:26:20 +08:00
1a706853ed Rename err2 to err1 where possible (#1331) 2016-06-19 08:33:33 +08:00
e3597b6548 Add Datum.IsNull() fucntion (#1298)
Add IsNull function for Datum to simplify null check.
2016-06-07 23:35:25 +08:00
75f089d056 util/types: clean up, removed unused code. (#1281) 2016-06-02 10:42:36 +08:00
7c7b1b59f5 *: Unify error (#1273)
* *: unify error format in table, server and xapi package

* terror: remove duplicated code
2016-05-31 15:06:11 +08:00
a05f3fde6d *: fix decimal fraction value. (#1271) 2016-05-31 10:29:02 +08:00
f09574d826 *: support sql mode (#1263) 2016-05-30 13:16:41 +08:00
622f8fca2a *: refactor, move index and column into table package. (#1251) 2016-05-24 11:08:15 +08:00
228f1d7026 support hash join in new plan (#1234)
* support hash join.

* fix some errors

* add test for predicate push down

* change substitutor...

* add bench mark

* change comment

* fix bug.
2016-05-19 15:43:16 +08:00
cf6d1f5f97 *: do not set null column value to save storage space. (#1236) 2016-05-17 19:14:28 +08:00
f8d7a3c5ef *: Fix unsigned int as PKColumn bug (#1238)
* *: Fix unsigned int as PKColumn bug
2016-05-17 14:41:11 +08:00
e742def024 add foreign key on update and on delete support (#1152)
* add foreign key on update and on delete support
2016-04-27 19:44:00 +08:00
36ef582b93 perfschema: fixed concurrent map bug (#1160) 2016-04-26 13:06:59 +08:00