Commit Graph

66 Commits

Author SHA1 Message Date
62340db3c0 mysql: change the default decimal for datetime. (#2694) 2017-02-21 19:50:54 +08:00
1972558dc9 *: change default collation to utf8_bin (#2617)
Currently we doesn't support case insensitive index, our duplication check is always case sensitive.

We should not use case insensitive collation as default collation.
2017-02-10 11:45:35 +08:00
8ba5d9ee2a *: avoid using TypeDecimal (#2619)
TypeDecimal is misleading, it is not used as Decimal type, it's an unspecified type.
2017-02-10 10:53:05 +08:00
468af824a9 *: Fix the wrong error message and fix missing type (#2431) 2017-01-10 14:43:38 +08:00
d4f1a0a28d ddl: Add the index key prefix limit (#2272) (#2380) 2017-01-10 11:32:20 +08:00
6ef340fb32 util/types: properly handle truncate error for string to float or int. (#2186)
When converting from string to float or int, use StatementContext to handle truncate error.
Also directly convert a string to Int instead converting to float first, then convert float to int.
2016-12-07 19:42:46 +08:00
57b201ebac mysql: tiny clean up (#2148) 2016-12-01 19:16:46 +08:00
9cca7b0b02 types: move Bit, Enum, Set, Hex to types package (#2085)
Consistent with Time and MyDecimal.
2016-11-24 12:28:55 +08:00
b19cc75a94 mysql, types: move MyDecimal and Time from 'mysql' to 'types' package. (#2082)
So we don't need to handle sql mode in 'mysql' package, avoid potential dependency cycle.
2016-11-24 10:50:31 +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
6dd4571a9a plan: handle type convertion when building index range. (#1964) 2016-11-07 20:32:09 +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
bb24031672 mysql: Fix server version number format (#1879) 2016-10-27 16:47:46 +08:00
d38cc3f534 support pushing bitwise operators and LogicXor down to kv (#1846) 2016-10-27 15:09:30 +08:00
0e289d1c0e *: Update TiDB version, check ClientLocalFiles capability when handling load data operation (#1774) 2016-10-09 20:36:43 +08:00
6dec14119a Fix typos (#1714) 2016-09-09 22:58:47 +08:00
dde36a141f *: Convert string to terror in DDL Job (#1699)
* *: convert string to terror
2016-09-09 09:58:40 +08:00
e7e2a762b3 mysql: fix a corner case bug for MyDecimal (#1642) 2016-08-26 14:09:01 +08:00
e31b281ee7 *: use new MyDecimal implementation. (#1611) 2016-08-22 20:24:39 +08:00
083da90693 mysql: refine decimal (#1598)
Prepare for replace old decimal.
2016-08-18 16:10:45 +08:00
6ccbfb2231 mysql: fix time parse (#1592) 2016-08-16 10:56:25 +08:00
257102739d mysql: MyDecimal implements multiply, division and modulus. (#1537) 2016-08-07 01:11:02 +08:00
1d5fdbfaf9 *: improve time codec. (#1551) 2016-08-05 14:23:38 +08:00
96b8366b39 mysql: MyDecimal supports FromBin, ToBin, Compare, Add, Sub. (#1511) 2016-08-01 18:51:16 +08:00
b38a5cd6be mysql: MyDecimal add more methods and tests. (#1500) 2016-07-27 23:14:22 +08:00
53cbe0c534 mysql: add MyDecimal data type. (#1486) 2016-07-25 14:12:59 +08:00
e0dfdc25ed Length check for database, table and column name (#1418) 2016-07-11 13:36:20 +08:00
61ada26dc4 Support sum in xapi. (#1409) 2016-07-08 19:59:13 +08:00
0450ba0b47 *: unify "See url" format (#1391)
* *: unify "See url" format
2016-07-05 11:21:10 +08:00
0373895334 *: Support time (#1282)
* *: support time
2016-06-02 10:48:09 +08:00
61532d7c4e *: Support monthname (#1279)
* *: support monthname
2016-06-01 14:02:53 +08:00
a05f3fde6d *: fix decimal fraction value. (#1271) 2016-05-31 10:29:02 +08:00
965e704412 executor: makes dirty table supports XAPI. (#1245) 2016-05-24 10:53:17 +08:00
3e09c29f41 mysql: fix fraction format (#1218)
* mysql: fix fraction format
2016-05-11 10:53:37 +08:00
9eecb2e0a6 *: Support using hexadecimal literals as string (#1196)
Support using hexadecimal literals as string
2016-05-04 16:11:46 +08:00
d78e4044cc *: fix misspells (#1143) 2016-04-22 11:30:37 +08:00
08034540f0 *: Add leak test
* *: add leak test and tiny clean up

* *: unify test format and add leak test

Conflicts:
	store/localstore/compactor_test.go
	mysql/error_test.go
*: add leak test
2016-04-07 20:53:45 +08:00
0b2c9f9eea mysql: fix cast date to int. 2016-04-02 20:12:08 +08:00
76388c2856 Merge pull request #1036 from pingcap/zxylvlp/change-datum-bit
util: Reserve mysql.Time change.
2016-04-01 13:21:40 +08:00
86f4459543 util: Reserve mysql.Time change. 2016-03-31 18:49:17 +08:00
xia
aaa7333359 mysql: rename Db to DB 2016-03-31 16:20:51 +08:00
afdf9a4ef6 Change mysql.Time to ptr in datum.
In this way, we can save the cost of the alloc of mysql.Time in interface.
In the future, we will change all mysql.Time to ptr to save the cost of copy mysql.Time struct.
2016-03-29 18:42:16 +08:00
xia
d1a5a25d92 mysql: update code and name format 2016-03-29 11:10:56 +08:00
ac12b71714 *: replace interface{} with Datum in convert. 2016-03-07 14:11:17 +08:00
aa04996297 *: Address comments and fix a bug in show stmt
1. Address comments
2. Add charset info in show stmt result field. Workbench can run show stmt now.
2016-01-17 12:44:51 +08:00
b607c8504b builtin: add time function dayname()
add builtin time function dayname()
2016-01-06 20:11:31 +08:00
405e6c57d4 add ast evaluation for date arith 2015-12-29 11:42:02 +08:00
xia
1ad237a952 Merge branch 'master' into zimuxia/store-status
Conflicts:
	plan/plans/info.go
2015-11-12 20:48:37 +08:00
xia
40f6d99748 *: store status variables to the db and add
the corresponding test
2015-11-11 12:32:40 +08:00
b3a137d8a8 *: Address comment 2015-11-11 12:26:44 +08:00