From 5710db3e2ad8751c3562a577c7e7a391d0cc1bea Mon Sep 17 00:00:00 2001 From: Morgan Tocker Date: Fri, 28 May 2021 09:15:14 -0600 Subject: [PATCH] fix linter --- scripts/generate-system-variables.go | 2 +- system-variables.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/generate-system-variables.go b/scripts/generate-system-variables.go index 73bfb61757643..6e85d36f0a4f4 100644 --- a/scripts/generate-system-variables.go +++ b/scripts/generate-system-variables.go @@ -692,7 +692,7 @@ func getExtendedDescription(sv *variable.SysVar) string { case variable.TiDBSkipASCIICheck: return "- This variable is used to set whether to skip ASCII validation.\n- Validating ASCII characters affects the performance. When you are sure that the input characters are valid ASCII characters, you can set the variable value to `ON`." case variable.TiDBSkipIsolationLevelCheck: - return "- After this switch is enabled, if an isolation level unsupported by TiDB is assigned to `tx_isolation`, no error is reported. This helps improve compatibility with applications that set (but do not depend on) a different isolation level.\n" + + return "- After this switch is enabled, if an isolation level unsupported by TiDB is assigned to `tx_isolation`, no error is reported. This helps improve compatibility with applications that set (but do not depend on) a different isolation level.\n\n" + "```sql\n" + "tidb> set tx_isolation='serializable';\n" + "ERROR 8048 (HY000): The isolation level 'serializable' is not supported. Set tidb_skip_isolation_level_check=1 to skip this error\n" + diff --git a/system-variables.md b/system-variables.md index 340a1532422bb..e31e4d16425fb 100644 --- a/system-variables.md +++ b/system-variables.md @@ -1110,6 +1110,7 @@ SET tidb_query_log_max_len = 20 - Scope: SESSION | GLOBAL - Default value: OFF - After this switch is enabled, if an isolation level unsupported by TiDB is assigned to `tx_isolation`, no error is reported. This helps improve compatibility with applications that set (but do not depend on) a different isolation level. + ```sql tidb> set tx_isolation='serializable'; ERROR 8048 (HY000): The isolation level 'serializable' is not supported. Set tidb_skip_isolation_level_check=1 to skip this error