Skip to content

Commit 354ccc8

Browse files
committed
Formatting fix
1 parent 6f1f135 commit 354ccc8

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/ast/ddl.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,11 +1000,7 @@ impl fmt::Display for AlterTableOperation {
10001000
Ok(())
10011001
}
10021002
AlterTableOperation::AlterSortKey { columns } => {
1003-
write!(
1004-
f,
1005-
"ALTER SORTKEY({})",
1006-
display_comma_separated(columns)
1007-
)?;
1003+
write!(f, "ALTER SORTKEY({})", display_comma_separated(columns))?;
10081004
Ok(())
10091005
}
10101006
AlterTableOperation::SuspendRecluster => {

tests/sqlparser_redshift.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,8 @@ fn test_create_table_diststyle() {
470470

471471
#[test]
472472
fn test_create_table_sortkey() {
473-
redshift()
474-
.verified_stmt("CREATE TABLE t1 (c1 INT, c2 INT, c3 TIMESTAMP) SORTKEY(c3)");
475-
redshift()
476-
.verified_stmt("CREATE TABLE t1 (c1 INT, c2 INT) SORTKEY(c1, c2)");
473+
redshift().verified_stmt("CREATE TABLE t1 (c1 INT, c2 INT, c3 TIMESTAMP) SORTKEY(c3)");
474+
redshift().verified_stmt("CREATE TABLE t1 (c1 INT, c2 INT) SORTKEY(c1, c2)");
477475
}
478476

479477
#[test]

0 commit comments

Comments
 (0)