Skip to content

Commit e568fea

Browse files
committed
chore: apply cargo fmt and sort new keywords
1 parent 7a5450a commit e568fea

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/keywords.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ define_keywords!(
244244
COMPRESSION,
245245
COMPUPDATE,
246246
COMPUTE,
247-
CONFIGURATION,
248247
CONCURRENTLY,
249248
CONDITION,
249+
CONFIGURATION,
250250
CONFLICT,
251251
CONNECT,
252252
CONNECTION,

tests/sqlparser_postgres.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -950,9 +950,7 @@ fn parse_alter_collation() {
950950
#[test]
951951
fn parse_create_text_search_configuration() {
952952
assert_eq!(
953-
pg().verified_stmt(
954-
"CREATE TEXT SEARCH CONFIGURATION public.myconfig (PARSER = myparser)"
955-
),
953+
pg().verified_stmt("CREATE TEXT SEARCH CONFIGURATION public.myconfig (PARSER = myparser)"),
956954
Statement::CreateTextSearchConfiguration(CreateTextSearchConfiguration {
957955
name: ObjectName::from(vec![Ident::new("public"), Ident::new("myconfig")]),
958956
options: vec![SqlOption::KeyValue {
@@ -963,7 +961,9 @@ fn parse_create_text_search_configuration() {
963961
);
964962

965963
assert_eq!(
966-
pg().parse_sql_statements("CREATE TEXT SEARCH CONFIGURATION myconfig PARSER = pg_catalog.default"),
964+
pg().parse_sql_statements(
965+
"CREATE TEXT SEARCH CONFIGURATION myconfig PARSER = pg_catalog.default"
966+
),
967967
Err(ParserError::ParserError(
968968
"Expected: (, found: PARSER".to_string()
969969
))

0 commit comments

Comments
 (0)