Skip to content

Commit

Permalink
Update compatibility for temporary tables in dev (#4935)
Browse files Browse the repository at this point in the history
* Update doc according to pingcap/tidb#22860

pingcap/parser#609
pingcap/tidb#22860

* Update sql-statements/sql-statement-create-table.md

Co-authored-by: TomShawn <[email protected]>
  • Loading branch information
nayuta-yanagisawa and TomShawn authored Mar 4, 2021
1 parent 5174d55 commit 20ac488
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sql-statements/sql-statement-create-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ mysql> DESC t1;

## MySQL compatibility

* TiDB does not support temporary tables, but it ignores the `CREATE TEMPORARY TABLE` syntax.
* TiDB does not support temporary tables. The `CREATE TEMPORARY TABLE` syntax will raise an error if [`tidb_enable_noop_functions = 0`](/system-variables.md#tidb_enable_noop_functions-new-in-v40). TiDB simply ignores the `TEMPORARY` keyword if `tidb_enable_noop_functions = 1`.
* All of the data types except spatial types are supported.
* `FULLTEXT`, `HASH` and `SPATIAL` indexes are not supported.
* For compatibility, the `index_col_name` attribute supports the length option with a maximum length limit of 3072 bytes by default. The length limit can be changed through the `max-index-length` configuration option. For details, see [TiDB configuration file](/tidb-configuration-file.md#max-index-length).
Expand Down
2 changes: 2 additions & 0 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ Constraint checking is always performed in place for pessimistic transactions (d
* `get_lock` and `release_lock` functions
* `LOCK IN SHARE MODE` syntax
* `SQL_CALC_FOUND_ROWS` syntax
* `CREATE TEMPORARY TABLE` syntax
* `DROP TEMPORARY TABLE` syntax

> **Note:**
>
Expand Down

0 comments on commit 20ac488

Please sign in to comment.