Skip to content

Commit b3b88d7

Browse files
committed
Fix merge
1 parent c9d67e7 commit b3b88d7

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/dialect/snowflake.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,21 @@
1717

1818
#[cfg(not(feature = "std"))]
1919
use crate::alloc::string::ToString;
20-
use crate::ast::helpers::stmt_create_database::CreateDatabaseBuilder;
2120
use crate::ast::helpers::key_value_options::{
2221
KeyValueOption, KeyValueOptionType, KeyValueOptions, KeyValueOptionsDelimiter,
2322
};
23+
use crate::ast::helpers::stmt_create_database::CreateDatabaseBuilder;
2424
use crate::ast::helpers::stmt_create_table::CreateTableBuilder;
2525
use crate::ast::helpers::stmt_data_loading::{
2626
FileStagingCommand, StageLoadSelectItem, StageLoadSelectItemKind, StageParamsObject,
2727
};
28-
use crate::ast::{CatalogSyncNamespaceMode, ColumnOption, ColumnPolicy, ColumnPolicyProperty, ContactEntry, CopyIntoSnowflakeKind, DollarQuotedString, Ident, IdentityParameters, IdentityProperty, IdentityPropertyFormatKind, IdentityPropertyKind, IdentityPropertyOrder, ObjectName, ObjectNamePart, RowAccessPolicy, ShowObjects, SqlOption, Statement, StorageSerializationPolicy, TagsColumnOption, WrappedCollection};
28+
use crate::ast::{
29+
CatalogSyncNamespaceMode, ColumnOption, ColumnPolicy, ColumnPolicyProperty, ContactEntry,
30+
CopyIntoSnowflakeKind, DollarQuotedString, Ident, IdentityParameters, IdentityProperty,
31+
IdentityPropertyFormatKind, IdentityPropertyKind, IdentityPropertyOrder, ObjectName,
32+
ObjectNamePart, RowAccessPolicy, ShowObjects, SqlOption, Statement, StorageSerializationPolicy,
33+
TagsColumnOption, WrappedCollection,
34+
};
2935
use crate::dialect::{Dialect, Precedence};
3036
use crate::keywords::Keyword;
3137
use crate::parser::{IsOptional, Parser, ParserError};
@@ -836,7 +842,7 @@ pub fn parse_create_database(
836842
let purpose = p.parse_identifier()?.value;
837843
p.expect_token(&Token::Eq)?;
838844
let contact = p.parse_identifier()?.value;
839-
Ok(ContactEntry { purpose, contact })
845+
Ok(ContactEntry { purpose, contact })
840846
})?;
841847
parser.expect_token(&Token::RParen)?;
842848
builder = builder.with_contacts(Some(contacts));

tests/sqlparser_common.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7949,11 +7949,8 @@ fn parse_create_database() {
79497949
if_not_exists,
79507950
location,
79517951
managed_location,
7952-
<<<<<<< HEAD
7953-
..
7954-
=======
79557952
clone,
7956-
>>>>>>> origin/main
7953+
..
79577954
} => {
79587955
assert_eq!("mydb", db_name.to_string());
79597956
assert!(!if_not_exists);
@@ -7994,11 +7991,8 @@ fn parse_create_database_ine() {
79947991
if_not_exists,
79957992
location,
79967993
managed_location,
7997-
<<<<<<< HEAD
7998-
..
7999-
=======
80007994
clone,
8001-
>>>>>>> origin/main
7995+
..
80027996
} => {
80037997
assert_eq!("mydb", db_name.to_string());
80047998
assert!(if_not_exists);

0 commit comments

Comments
 (0)