From 15fec79284df6cd5f793660a018b0362d343e70a Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Sun, 17 Mar 2019 16:24:47 -0600 Subject: [PATCH 1/3] sql: add support for views master has support for views now. --- sql/mysql-compatibility.md | 1 - 1 file changed, 1 deletion(-) diff --git a/sql/mysql-compatibility.md b/sql/mysql-compatibility.md index 0566654c9887e..78115b4bc2f05 100644 --- a/sql/mysql-compatibility.md +++ b/sql/mysql-compatibility.md @@ -15,7 +15,6 @@ However, in TiDB, the following MySQL features are not supported for the time be ## Unsupported features + Stored procedures and functions -+ Views + Triggers + Events + User-defined functions From 466eeeff7c99e80c9aae92023053e85a341a4a34 Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Thu, 21 Mar 2019 11:43:10 -0600 Subject: [PATCH 2/3] Add clarity on view functionality --- sql/mysql-compatibility.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sql/mysql-compatibility.md b/sql/mysql-compatibility.md index 78115b4bc2f05..82322aae900cd 100644 --- a/sql/mysql-compatibility.md +++ b/sql/mysql-compatibility.md @@ -154,6 +154,10 @@ Due to its distributed nature, workloads that are single-threaded may perform wo When TiDB is in the execution of loading data, by default, a record with 20,000 rows of data is seen as a transaction for persistent storage. If a load data operation inserts more than 20,000 rows, it will be divided into multiple transactions to commit. If an error occurs in one transaction, this transaction in process will not be committed. However, transactions before that are committed successfully. In this case, a part of the load data operation is successfully inserted, and the rest of the data insertion fails. But MySQL treats a load data operation as a transaction, one error leads to the failure of the entire load data operation. +### Views + +Views in TiDB are currently non-updatable. We plan to add this functionality at a later date. + ### Storage engines For compatibility reasons, TiDB supports the syntax to create tables with alternative storage engines. Metadata commands describe tables as being of engine InnoDB: From ce0edee35277339087ccaa3e08e42c126aeb10bb Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Fri, 22 Mar 2019 07:20:22 -0600 Subject: [PATCH 3/3] Update mysql-compatibility.md --- sql/mysql-compatibility.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/mysql-compatibility.md b/sql/mysql-compatibility.md index 82322aae900cd..99bb718198f12 100644 --- a/sql/mysql-compatibility.md +++ b/sql/mysql-compatibility.md @@ -156,7 +156,7 @@ Due to its distributed nature, workloads that are single-threaded may perform wo ### Views -Views in TiDB are currently non-updatable. We plan to add this functionality at a later date. +Views in TiDB are currently non-insertable and non-updatable. We plan to add this functionality at a later date. ### Storage engines