Commit Graph

101 Commits

Author SHA1 Message Date
fc209cb1df *: rewrite hex and bit literals (#4415) 2017-09-07 16:28:24 +08:00
0b04d1c6c7 expression: rewrite builtin JSON functions under the new framework. (#4367) 2017-09-06 14:42:35 +08:00
67967f8378 mysql: Upgrade version to 0.9.0 (#4388) 2017-08-31 15:14:44 +08:00
ea29a1c30d expression: Support more types when getting default flen and decimal (#4236) 2017-08-28 02:26:07 -05:00
97e9dfe92c expression: Fix Flen for DATETIME, TIMESTAMP and TIME (#4264) 2017-08-21 16:10:04 +08:00
ea1de4c2ac mysql: Remove the init function (#4229) 2017-08-18 14:45:57 +08:00
2e7db3da83 Add release version info (#4218)
Add version information in tidb-server's log, tidb-server -V output and mysql-client prompt.
So it is easier to get the release information.
2017-08-17 21:19:51 +08:00
7a488163d0 expression: rewrite builtin function: DIV (#4180) 2017-08-17 20:47:17 +08:00
44a7e900cd *: set default length for some types (#4200) 2017-08-16 15:56:34 +08:00
5cfc93486b add multi-column index key part limit (#4159) 2017-08-14 14:05:16 +08:00
3d7c74f1a4 expression, plan: rewrite builtin arithmetic function: PLUS (#3858) 2017-08-07 22:02:31 +08:00
d880419acf plan: use the literal value as column name in SELECT when it is NULL of STRING (#3994) 2017-08-07 21:36:46 +08:00
bae8fe46f9 ddl: index name should not be primary (#3834) (#4030) 2017-08-06 20:59:14 +08:00
45b13118ad parser, plan, util: fix alter table does not check the field length limitation (#3859)
* fix alter table does not check the field length limitation of char/varchar
2017-07-27 17:27:50 +08:00
8ebe4c2549 plan, executor, expression: refactor explain (#3809) 2017-07-25 14:12:48 +08:00
35d2ca006a expression, parser: simplify the type inferer of builtin funcs (#3617) 2017-07-06 16:18:40 +08:00
900fa9fbb9 expression:rewrite password using new expression evaluation architecture (#3593) 2017-07-04 17:48:11 +08:00
ebfacce977 *: set length and decimal for constant values (#3608) 2017-07-04 13:43:40 +08:00
0dd049d9b2 [expression] rewrite built-in string function: REPEAT (#3546)
* expression, executor: rewrite builtin func repeat

* expression, executor: rewrite builtin func repeat, remove unnecessary non-binary flag settings

* only cover retType in ScalaFunction when builtin function's retType is not mysql.TypeUnspecified

* add test cases in executor_test.go for built-in udf REPEAT
2017-06-30 14:09:29 +08:00
2b4a3ce5e6 parser: parse "select HIGH_PRIORITY ..." statement (#3466) 2017-06-26 17:19:10 +08:00
4db09e0940 expression, executor: rewrite built-in func makeDate using new expression evaluation architecture (#3533) 2017-06-23 15:52:36 +08:00
913037ebb9 tablecodec,mysql, util: mysql TypeDuration Fsp (#3499)
Fixed RoundError issue #3471
Bug Cause:
1. when deserialize mysqlDuration, the Fsp is setted with 0 instead of the Fsp from column information.
2. the default decimal for column with TypeDuration is 0.
2017-06-20 11:10:40 +08:00
9575deeb10 ddl: add more features about generated column. (#3431)
DESC table_with_generated_column;
SHOW CREATE TABLE table_with_generated_column;
If generated expression in DDL references bad column, throw error;
If alter table change/drop column dependent by other columns, throw error;
if alter table change/modify generated columns, throw error if needs.
2017-06-13 18:53:58 +08:00
72981fdbbd DDL: add two limits for JSON column: used as key and not null default value. (#3401) 2017-06-08 13:52:12 +08:00
791b4c273c expression: add buildin functions json_{set,insert,replace} and json_merge. (#3388) 2017-06-06 15:50:32 +08:00
9b6fc032fc *: add References_priv to mysql.user (#3343) 2017-05-26 17:58:32 +08:00
be56698f72 document-store: init work. (#3228)
* document-store: init work.

1. add error codes and messages for json;
2. add json_extract and json_unquote functions in parser;
2017-05-10 19:17:52 +08:00
3f296ed82d *: add Trigger_priv column to mysql.user (#3143) 2017-05-03 13:49:07 +08:00
0595143194 *: add Process_priv column to mysql.user (#2994) 2017-04-28 22:35:46 +08:00
f7cc682eed *: support Super_priv (#2990) 2017-04-05 19:21:07 +08:00
ff3abdfd27 builtin: add format built-in function (#2883) 2017-03-31 13:21:08 +08:00
60ba388e0c *: check visibility for show databases and tables (#2934) 2017-03-28 11:28:50 +08:00
30fc95ef6d Revert "*: upgrade mysql.user table schema (#2849)" (#2893)
This reverts commit d0ddbaa418d86320b21813d8f8bde45539396787.
2017-03-20 15:22:21 +08:00
d0ddbaa418 *: upgrade mysql.user table schema (#2849) 2017-03-20 14:33:43 +08:00
fbf0530210 *: introduce all sql_modes (#2739) 2017-02-27 10:53:48 +08:00
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