[doc](Nereids) add doc for NO_BACKSLASH_ESCAPES (#26995)

This commit is contained in:
谢健
2023-11-16 13:51:43 +08:00
committed by GitHub
parent 343d58123d
commit d20441f002
2 changed files with 11 additions and 0 deletions

View File

@ -66,6 +66,11 @@ show session variables
1. `PIPES_AS_CONCAT`
In this mode, the '||' symbol is a string concatenation symbol (same as the CONCAT() function), not a synonym for the 'OR' symbol. (e.g., `'a'||'b' = 'ab'`, `1||0 = '10'`)
2. `NO_BACKSLASH_ESCAPES`
Enabling this mode disables the backslash character (\\) from functioning as an escape character within strings and identifiers. When this mode is enabled, the backslash is treated as a regular character without any special meaning
## composite mode
(subsequent additions)

View File

@ -71,6 +71,12 @@ show session variables
在此模式下,'||'符号是一种字符串连接符号(同CONCAT()函数),而不是'OR'符号的同义词。(e.g., `'a'||'b' = 'ab'`, `1||0 = '10'`)
2. `NO_BACKSLASH_ESCAPES`
启用此模式将禁用反斜杠字符(\)作为字符串和标识符中的转义字符。启用此模式后,反斜杠将变成一个普通字符,与其他字符一样。(e.g., `\b = \\b`, )
## 复合mode
(后续补充)