Skip to content

Commit

Permalink
add description about limitation (#19068) (#19130)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Oct 15, 2024
1 parent 27ac0c4 commit c521b72
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sql-statements/sql-statement-change-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ ERROR 8200 (HY000): Unsupported modify column: change from original type decimal
* Changes of [Reorg-Data](/sql-statements/sql-statement-modify-column.md#reorg-data-change) types on primary key columns are not supported.
* Changes of column types on partitioned tables are not supported.
* Changes of column types on generated columns are not supported.
* Changes of some data types (for example, some TIME, Bit, Set, Enum, and JSON types) are not supported due to the compatibility issues of the `CAST` function's behavior between TiDB and MySQL.
* Changes from some data types (for example, TIME, BIT, SET, ENUM, and JSON types) to some other types are not supported due to the compatibility issues of the `CAST` function's behavior between TiDB and MySQL.

## See also

Expand Down
2 changes: 1 addition & 1 deletion sql-statements/sql-statement-modify-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ CREATE TABLE `t1` (
ERROR 8200 (HY000): Unsupported modify column: table is partition table
```

* Does not support modifying some data types (for example, some TIME types, Bit, Set, Enum, JSON) are not supported due to some compatibility issues of the `cast` function's behavior between TiDB and MySQL.
* Does not support modifying from some data types (for example, some TIME types, BIT, SET, ENUM, JSON) to some other types due to some compatibility issues of the `cast` function's behavior between TiDB and MySQL.
```sql
CREATE TABLE t (a DECIMAL(13, 7));
Expand Down
4 changes: 4 additions & 0 deletions tidb-limitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ summary: Learn the usage limitations of TiDB.

This document describes the common usage limitations of TiDB, including the maximum identifier length and the maximum number of supported databases, tables, indexes, partitioned tables, and sequences.

> **Note:**
>
> TiDB offers high compatibility with the MySQL protocol and syntax, including many MySQL limitations. For example, a single index can include a maximum of 16 columns. For more information, see [MySQL Compatibility](/mysql-compatibility.md) and the official MySQL documentation.
## Limitations on identifier length

| Identifier type | Maximum length (number of characters allowed) |
Expand Down

0 comments on commit c521b72

Please sign in to comment.