diff --git a/internal/explain/format.go b/internal/explain/format.go index f97d1acab..3ce29f77b 100644 --- a/internal/explain/format.go +++ b/internal/explain/format.go @@ -34,7 +34,7 @@ func escapeStringLiteral(s string) string { case '\\': sb.WriteString("\\\\\\\\") // backslash becomes four backslashes (\\\\) case '\'': - sb.WriteString("\\'") + sb.WriteString("\\\\\\'") // single quote becomes \\\' (escaped backslash + escaped quote) case '\n': sb.WriteString("\\\\n") // newline becomes \\n case '\t': diff --git a/parser/testdata/01434_netloc_fuzz/metadata.json b/parser/testdata/01434_netloc_fuzz/metadata.json index ef120d978..9e26dfeeb 100644 --- a/parser/testdata/01434_netloc_fuzz/metadata.json +++ b/parser/testdata/01434_netloc_fuzz/metadata.json @@ -1 +1 @@ -{"todo": true} +{} \ No newline at end of file diff --git a/parser/testdata/03003_sql_json_nonsense/metadata.json b/parser/testdata/03003_sql_json_nonsense/metadata.json index ef120d978..0967ef424 100644 --- a/parser/testdata/03003_sql_json_nonsense/metadata.json +++ b/parser/testdata/03003_sql_json_nonsense/metadata.json @@ -1 +1 @@ -{"todo": true} +{} diff --git a/parser/testdata/03404_ubsan_distinct_join_const_column/explain.txt b/parser/testdata/03404_ubsan_distinct_join_const_column/explain.txt index 372100182..588adf53d 100644 --- a/parser/testdata/03404_ubsan_distinct_join_const_column/explain.txt +++ b/parser/testdata/03404_ubsan_distinct_join_const_column/explain.txt @@ -13,7 +13,7 @@ SelectWithUnionQuery (children 1) ExpressionList (children 1) Function CAST (children 1) ExpressionList (children 2) - Literal \'[(1, \'a\')]\' + Literal \'[(1, \\\'a\\\')]\' Literal \'String\' ExpressionList (children 3) Literal UInt64_1 @@ -70,7 +70,7 @@ SelectWithUnionQuery (children 1) ExpressionList (children 2) Function toNullable (children 1) ExpressionList (children 1) - Literal \'[(1, \'a\')]\' + Literal \'[(1, \\\'a\\\')]\' Literal \'String\' ExpressionList (children 3) Literal UInt64_1 diff --git a/parser/testdata/03404_ubsan_distinct_join_const_column/metadata.json b/parser/testdata/03404_ubsan_distinct_join_const_column/metadata.json index 0967ef424..e910da199 100644 --- a/parser/testdata/03404_ubsan_distinct_join_const_column/metadata.json +++ b/parser/testdata/03404_ubsan_distinct_join_const_column/metadata.json @@ -1 +1 @@ -{} +{"explain_txt_edited": true} diff --git a/parser/testdata/03521_tuple_of_dynamic_with_string_comparison/metadata.json b/parser/testdata/03521_tuple_of_dynamic_with_string_comparison/metadata.json index ef120d978..0967ef424 100644 --- a/parser/testdata/03521_tuple_of_dynamic_with_string_comparison/metadata.json +++ b/parser/testdata/03521_tuple_of_dynamic_with_string_comparison/metadata.json @@ -1 +1 @@ -{"todo": true} +{} diff --git a/parser/testdata/03567_finalize_write_buffer_valid_utf8/metadata.json b/parser/testdata/03567_finalize_write_buffer_valid_utf8/metadata.json index ef120d978..0967ef424 100644 --- a/parser/testdata/03567_finalize_write_buffer_valid_utf8/metadata.json +++ b/parser/testdata/03567_finalize_write_buffer_valid_utf8/metadata.json @@ -1 +1 @@ -{"todo": true} +{}