From d0720c7807fa8f2e852b3bfaa7336f15dbc0bf46 Mon Sep 17 00:00:00 2001 From: Michael Bischoff Date: Sun, 7 Sep 2025 23:16:43 +0200 Subject: [PATCH] Update esql-syntax.md I think we need to reword this bit as we don't actually say things like `\` is the escape character - which I'm not too well equipped for. but the `\\"` is wrong and should be `\"` so vs escaping escape char and then quote as this fails: ``` POST _query?format=txt { "query":""" ROW a = 1 | EVAL b = "\\"" """ } ``` vs: ``` POST _query?format=txt { "query":""" ROW a = 1 | EVAL b = "\"" """ } ``` --- docs/reference/query-languages/esql/esql-syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/query-languages/esql/esql-syntax.md b/docs/reference/query-languages/esql/esql-syntax.md index ea941563e0728..22f8e6959e32e 100644 --- a/docs/reference/query-languages/esql/esql-syntax.md +++ b/docs/reference/query-languages/esql/esql-syntax.md @@ -69,7 +69,7 @@ FROM index | WHERE first_name == "Georgi" ``` -If the literal string itself contains quotes, these need to be escaped (`\\"`). {{esql}} also supports the triple-quotes (`"""`) delimiter, for convenience: +If the literal string itself contains quotes, these need to be escaped (`\"`). {{esql}} also supports the triple-quotes (`"""`) delimiter, for convenience: ```esql ROW name = """Indiana "Indy" Jones"""