From bc9a03d069b418ce354e20ef949e166c61db08d8 Mon Sep 17 00:00:00 2001 From: TennyZhuang Date: Sat, 30 Mar 2024 18:30:48 +0800 Subject: [PATCH] fix test file Signed-off-by: TennyZhuang --- src/sqlparser/tests/testdata/select.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlparser/tests/testdata/select.yaml b/src/sqlparser/tests/testdata/select.yaml index f4469aa5443d7..b8bcfe18e87e4 100644 --- a/src/sqlparser/tests/testdata/select.yaml +++ b/src/sqlparser/tests/testdata/select.yaml @@ -166,7 +166,7 @@ formatted_sql: SELECT 'a' LIKE 'a' formatted_ast: 'Query(Query { with: None, body: Select(Select { distinct: All, projection: [UnnamedExpr(Like { negated: false, expr: Value(SingleQuotedString("a")), pattern: Value(SingleQuotedString("a")), escape_char: None })], from: [], lateral_views: [], selection: None, group_by: [], having: None }), order_by: [], limit: None, offset: None, fetch: None })' - input: select 'a' like 'a' escape '\'; - formatted_sql: SELECT 'a' LIKE 'a' ESCAPE ''\'' + formatted_sql: SELECT 'a' LIKE 'a' ESCAPE '\' formatted_ast: 'Query(Query { with: None, body: Select(Select { distinct: All, projection: [UnnamedExpr(Like { negated: false, expr: Value(SingleQuotedString("a")), pattern: Value(SingleQuotedString("a")), escape_char: Some(EscapeChar(Some(''\\''))) })], from: [], lateral_views: [], selection: None, group_by: [], having: None }), order_by: [], limit: None, offset: None, fetch: None })' - input: select 'a' not like ANY(array['a', null]); formatted_sql: SELECT 'a' NOT LIKE SOME(ARRAY['a', NULL])