Skip to content

Commit

Permalink
Update for cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Nov 19, 2024
1 parent 4fe68d6 commit 9fa10ca
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions data-type-numeric.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,22 @@ TiDB supports all the MySQL integer types, including `INTEGER`/`INT`, `TINYINT`,

The following table summarizes field descriptions:

<CustomContent platform="tidb">

> **Warning:**
>
> Starting from v8.5.0, integer display width is deprecated ([`deprecate-integer-display-length`](/tidb-configuration-file.md#deprecate-integer-display-length) is `true` by default). Specifying display width for integer types is NOT recommended.
</CustomContent>

<CustomContent platform="tidb-cloud">

> **Warning:**
>
> Starting from v8.5.0, integer display width is deprecated. Specifying display width for integer types is NOT recommended.
</CustomContent>

| Syntax Element | Description |
| -------- | ------------------------------- |
| M | the display width of the type. Optional. |
Expand Down
12 changes: 12 additions & 0 deletions data-type-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,21 @@ The definitions used for datatypes are specified as `T(M[, D])`. Where by:
- `T` indicates the specific data type.
- `M` indicates the maximum display width for integer types. For floating-point and fixed-point types, `M` is the total number of digits that can be stored (the precision). For string types, `M` is the maximum length. The maximum permissible value of M depends on the data type.

<CustomContent platform="tidb">

> **Warning:**
>
> Starting from v8.5.0, integer display width is deprecated ([`deprecate-integer-display-length`](/tidb-configuration-file.md#deprecate-integer-display-length) is `true` by default). Specifying display width for integer types is NOT recommended.

</CustomContent>

<CustomContent platform="tidb-cloud">

> **Warning:**
>
> Starting from v8.5.0, integer display width is deprecated. Specifying display width for integer types is NOT recommended.

</CustomContent>

- `D` applies to floating-point and fixed-point types and indicates the number of digits following the decimal point (the scale).
- `fsp` applies to the `TIME`, `DATETIME`, and `TIMESTAMP` types and represents the fractional seconds precision. The `fsp` value, if given, must be in the range 0 to 6. A value of 0 signifies that there is no fractional part. If omitted, the default precision is 0.

0 comments on commit 9fa10ca

Please sign in to comment.