Skip to content

Commit

Permalink
Add a missing item in mysql-compatibility.md (#3893)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomShawn authored Sep 14, 2020
1 parent 91fa4ac commit 5e09016
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mysql-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ In TiDB DDL does not block reads or writes to tables while in operation. However
- Does not support lossy changes, such as from `BIGINT` to `INTEGER` or `VARCHAR(255)` to `VARCHAR(10)`. Otherwise, the `length %d is less than origin %d` error might be output.
- Does not support modifying the precision of `DECIMAL` data types.
- Changing the field type to its superset is unsupported. For example, TiDB does not support changing the field type from `INTEGER` to `VARCHAR`, or from `TIMESTAMP` to `DATETIME`. Otherwise, the error information `Unsupported modify column: type %d not match origin %d` might be output.
- Does not support changing the `UNSIGNED` attribute.
- Only supports changing the `CHARACTER SET` attribute from `utf8` to `utf8mb4`.
+ `LOCK [=] {DEFAULT|NONE|SHARED|EXCLUSIVE}`: the syntax is supported, but is not applicable to TiDB. All DDL changes that are supported do not lock the table.
+ `ALGORITHM [=] {DEFAULT|INSTANT|INPLACE|COPY}`: the syntax for `ALGORITHM=INSTANT` and `ALGORITHM=INPLACE` is fully supported, but it works differently from MySQL because some operations that are `INPLACE` in MySQL are `INSTANT` in TiDB. The syntax `ALGORITHM=COPY` is not applicable to TIDB and returns a warning.
Expand Down

0 comments on commit 5e09016

Please sign in to comment.