From 7475d23ce0a887c13a32265d71e09fec3362620f Mon Sep 17 00:00:00 2001 From: juliezhang1112 <1060074157@qq.com> Date: Wed, 13 Nov 2019 16:40:58 +0800 Subject: [PATCH] tools: add sql-mode config for sync-diff-inspector --- dev/reference/tools/sync-diff-inspector/overview.md | 4 ++++ v2.1/reference/tools/sync-diff-inspector/overview.md | 4 ++++ v3.0/reference/tools/sync-diff-inspector/overview.md | 4 ++++ v3.1/reference/tools/sync-diff-inspector/overview.md | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/dev/reference/tools/sync-diff-inspector/overview.md b/dev/reference/tools/sync-diff-inspector/overview.md index f4f10890265c9..35b1d7340fc67 100644 --- a/dev/reference/tools/sync-diff-inspector/overview.md +++ b/dev/reference/tools/sync-diff-inspector/overview.md @@ -185,6 +185,8 @@ fix-sql-file = "fix.sql" # Uses the snapshot function of TiDB. # If enabled, the history data is used for comparison. # snapshot = "2016-10-08 16:45:26" + # Sets the `sql-mode` of the database to parse table structures. + # sql-mode = "" # Configuration of the target database instance [target-db] @@ -195,6 +197,8 @@ fix-sql-file = "fix.sql" # Uses the snapshot function of TiDB. # If enabled, the history data is used for comparison. # snapshot = "2016-10-08 16:45:26" + # Sets the `sql-mode` of the database to parse table structures. + # sql-mode = "" ``` ### Run sync-diff-inspector diff --git a/v2.1/reference/tools/sync-diff-inspector/overview.md b/v2.1/reference/tools/sync-diff-inspector/overview.md index 43f564c64c914..74a54a58a8c15 100644 --- a/v2.1/reference/tools/sync-diff-inspector/overview.md +++ b/v2.1/reference/tools/sync-diff-inspector/overview.md @@ -186,6 +186,8 @@ fix-sql-file = "fix.sql" # Uses the snapshot function of TiDB. # If enabled, the history data is used for comparison. # snapshot = "2016-10-08 16:45:26" + # Sets the `sql-mode` of the database to parse table structures. + # sql-mode = "" # Configuration of the target database instance [target-db] @@ -196,6 +198,8 @@ fix-sql-file = "fix.sql" # Uses the snapshot function of TiDB. # If enabled, the history data is used for comparison. # snapshot = "2016-10-08 16:45:26" + # Sets the `sql-mode` of the database to parse table structures. + # sql-mode = "" ``` ### Run sync-diff-inspector diff --git a/v3.0/reference/tools/sync-diff-inspector/overview.md b/v3.0/reference/tools/sync-diff-inspector/overview.md index 4803027c2ceba..478b4615c0ef7 100644 --- a/v3.0/reference/tools/sync-diff-inspector/overview.md +++ b/v3.0/reference/tools/sync-diff-inspector/overview.md @@ -186,6 +186,8 @@ fix-sql-file = "fix.sql" # Uses the snapshot function of TiDB. # If enabled, the history data is used for comparison. # snapshot = "2016-10-08 16:45:26" + # Sets the `sql-mode` of the database to parse table structures. + # sql-mode = "" # Configuration of the target database instance [target-db] @@ -196,6 +198,8 @@ fix-sql-file = "fix.sql" # Uses the snapshot function of TiDB. # If enabled, the history data is used for comparison. # snapshot = "2016-10-08 16:45:26" + # Sets the `sql-mode` of the database to parse table structures. + # sql-mode = "" ``` ### Run sync-diff-inspector diff --git a/v3.1/reference/tools/sync-diff-inspector/overview.md b/v3.1/reference/tools/sync-diff-inspector/overview.md index 8af47674eb7e6..cb0b76757a45e 100644 --- a/v3.1/reference/tools/sync-diff-inspector/overview.md +++ b/v3.1/reference/tools/sync-diff-inspector/overview.md @@ -185,6 +185,8 @@ fix-sql-file = "fix.sql" # Uses the snapshot function of TiDB. # If enabled, the history data is used for comparison. # snapshot = "2016-10-08 16:45:26" + # Sets the `sql-mode` of the database to parse table structures. + # sql-mode = "" # Configuration of the target database instance [target-db] @@ -195,6 +197,8 @@ fix-sql-file = "fix.sql" # Uses the snapshot function of TiDB. # If enabled, the history data is used for comparison. # snapshot = "2016-10-08 16:45:26" + # Sets the `sql-mode` of the database to parse table structures. + # sql-mode = "" ``` ### Run sync-diff-inspector