From c824fa20a67a546fd954954f93c6d69ab160d4a7 Mon Sep 17 00:00:00 2001 From: August Date: Fri, 17 May 2024 17:27:37 +0800 Subject: [PATCH] fix parser test --- src/sqlparser/tests/testdata/create.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sqlparser/tests/testdata/create.yaml b/src/sqlparser/tests/testdata/create.yaml index a718a8517bed1..5e5a668fb70a4 100644 --- a/src/sqlparser/tests/testdata/create.yaml +++ b/src/sqlparser/tests/testdata/create.yaml @@ -7,10 +7,10 @@ formatted_ast: 'CreateDatabase { db_name: ObjectName([Ident { value: "t", quote_style: None }]), if_not_exists: true }' - input: CREATE SCHEMA t formatted_sql: CREATE SCHEMA t - formatted_ast: 'CreateSchema { schema_name: ObjectName([Ident { value: "t", quote_style: None }]), if_not_exists: false }' + formatted_ast: 'CreateSchema { schema_name: ObjectName([Ident { value: "t", quote_style: None }]), if_not_exists: false, user_specified: None }' - input: CREATE SCHEMA IF NOT EXISTS t formatted_sql: CREATE SCHEMA IF NOT EXISTS t - formatted_ast: 'CreateSchema { schema_name: ObjectName([Ident { value: "t", quote_style: None }]), if_not_exists: true }' + formatted_ast: 'CreateSchema { schema_name: ObjectName([Ident { value: "t", quote_style: None }]), if_not_exists: true, user_specified: None }' - input: CREATE OR REPLACE TABLE t (a INT) formatted_sql: CREATE OR REPLACE TABLE t (a INT) - input: CREATE TABLE t (a INT, b INT) AS SELECT 1 AS b, 2 AS a